Files
SwiftLint/Tests/FileSystemAccessTests/Resources/CannedJSONReporterOutput.json
Danny Mösch 6c1ae86eb3 Use URL for file paths throughout the code base
# Conflicts:
#	Source/SwiftLintFramework/Extensions/FileManager+SwiftLint.swift
#	Tests/IntegrationTests/ConfigPathResolutionTests.swift
2026-01-24 22:13:56 +01:00

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"
}
]