mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
792032480e
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org> Co-authored-by: Roman Lavrov <roman.lavrov@thebrowser.company>
38 lines
1016 B
JSON
38 lines
1016 B
JSON
[
|
|
{
|
|
"character" : 1,
|
|
"file" : "${CURRENT_WORKING_DIRECTORY}/filename",
|
|
"line" : 1,
|
|
"reason" : "Violation Reason 1",
|
|
"rule_id" : "line_length",
|
|
"severity" : "Warning",
|
|
"type" : "Line Length"
|
|
},
|
|
{
|
|
"character" : null,
|
|
"file" : "${CURRENT_WORKING_DIRECTORY}/filename",
|
|
"line" : 1,
|
|
"reason" : "Violation Reason 2",
|
|
"rule_id" : "line_length",
|
|
"severity" : "Error",
|
|
"type" : "Line Length"
|
|
},
|
|
{
|
|
"character" : 2,
|
|
"file" : "${CURRENT_WORKING_DIRECTORY}/path/file.swift",
|
|
"line" : 1,
|
|
"reason" : "Shorthand syntactic sugar should be used, i.e. [Int] instead of Array<Int>",
|
|
"rule_id" : "syntactic_sugar",
|
|
"severity" : "Error",
|
|
"type" : "Syntactic Sugar"
|
|
},
|
|
{
|
|
"character" : null,
|
|
"file" : null,
|
|
"line" : null,
|
|
"reason" : "Colons should be next to the identifier when specifying a type and next to the key in dictionary literals",
|
|
"rule_id" : "colon",
|
|
"severity" : "Error",
|
|
"type" : "Colon Spacing"
|
|
}
|
|
] |