mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
ad793d1c5b
These tests can especially not run in parallel.
39 lines
959 B
JSON
39 lines
959 B
JSON
[
|
|
{
|
|
"character" : 1,
|
|
"file" : "filename",
|
|
"line" : 1,
|
|
"reason" : "Violation Reason 1",
|
|
"rule_id" : "line_length",
|
|
"severity" : "Warning",
|
|
"type" : "Line Length"
|
|
},
|
|
{
|
|
"character" : null,
|
|
"file" : "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"
|
|
}
|
|
]
|