mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
07c8e52fc8
* * Changed rule name from "Colon" to "Colon Spacing" * Updated tests * Update CHANGELOG.md Co-authored-by: Seth Friedman <sethfri@gmail.com>
38 lines
919 B
JSON
38 lines
919 B
JSON
[
|
|
{
|
|
"reason" : "Violation Reason.",
|
|
"character" : 2,
|
|
"file" : "filename",
|
|
"rule_id" : "line_length",
|
|
"line" : 1,
|
|
"severity" : "Warning",
|
|
"type" : "Line Length"
|
|
},
|
|
{
|
|
"reason" : "Violation Reason.",
|
|
"character" : 2,
|
|
"file" : "filename",
|
|
"rule_id" : "line_length",
|
|
"line" : 1,
|
|
"severity" : "Error",
|
|
"type" : "Line Length"
|
|
},
|
|
{
|
|
"reason" : "Shorthand syntactic sugar should be used, i.e. [Int] instead of Array<Int>.",
|
|
"character" : 2,
|
|
"file" : "filename",
|
|
"rule_id" : "syntactic_sugar",
|
|
"line" : 1,
|
|
"severity" : "Error",
|
|
"type" : "Syntactic Sugar"
|
|
},
|
|
{
|
|
"reason" : "Colons should be next to the identifier when specifying a type and next to the key in dictionary literals.",
|
|
"character" : null,
|
|
"file" : null,
|
|
"rule_id" : "colon",
|
|
"line" : null,
|
|
"severity" : "Error",
|
|
"type" : "Colon Spacing"
|
|
}
|
|
] |