-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
991870b
commit 8c023ee
Showing
2 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
linters/swiftlint/test_data/swiftlint_v0.55.0_basic.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter swiftlint test basic 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "type_name", | ||
"column": "8", | ||
"file": "test_data/basic.swift", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "swiftlint", | ||
"message": "Type Name Violation: Type name 'a' should start with an uppercase character", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "line_length", | ||
"column": "1", | ||
"file": "test_data/basic.swift", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_MEDIUM", | ||
"line": "3", | ||
"linter": "swiftlint", | ||
"message": "Line Length Violation: Line should be 120 characters or less; currently it has 139 characters", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "vertical_whitespace", | ||
"column": "1", | ||
"file": "test_data/basic.swift", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_MEDIUM", | ||
"line": "5", | ||
"linter": "swiftlint", | ||
"message": "Vertical Whitespace Violation: Limit vertical whitespace to a single empty line; currently 2", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "identifier_name", | ||
"column": "6", | ||
"file": "test_data/basic.swift", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"level": "LEVEL_HIGH", | ||
"line": "6", | ||
"linter": "swiftlint", | ||
"message": "Identifier Name Violation: Function name 'Bar()' should start with a lowercase character", | ||
"targetType": "swift", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "swift", | ||
"linter": "swiftlint", | ||
"paths": [ | ||
"test_data/basic.swift", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "swift", | ||
"linter": "swiftlint", | ||
"paths": [ | ||
"test_data/basic.swift", | ||
], | ||
"upstream": true, | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
80 changes: 80 additions & 0 deletions
80
linters/swiftlint/test_data/swiftlint_v0.55.0_nested_configs.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter swiftlint test nested_configs 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "type_name", | ||
"column": "8", | ||
"file": "basic.swift", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "swiftlint", | ||
"message": "Type Name Violation: Type name 'a' should start with an uppercase character", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "vertical_whitespace", | ||
"column": "1", | ||
"file": "basic.swift", | ||
"level": "LEVEL_MEDIUM", | ||
"line": "5", | ||
"linter": "swiftlint", | ||
"message": "Vertical Whitespace Violation: Limit vertical whitespace to a single empty line; currently 2", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "vertical_whitespace", | ||
"column": "1", | ||
"file": "test_data/basic.swift", | ||
"level": "LEVEL_MEDIUM", | ||
"line": "5", | ||
"linter": "swiftlint", | ||
"message": "Vertical Whitespace Violation: Limit vertical whitespace to a single empty line; currently 2", | ||
"targetType": "swift", | ||
}, | ||
{ | ||
"code": "type_name", | ||
"column": "8", | ||
"file": "test_data/subdir/basic.swift", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "swiftlint", | ||
"message": "Type Name Violation: Type name 'a' should start with an uppercase character", | ||
"targetType": "swift", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "swift", | ||
"linter": "swiftlint", | ||
"paths": [ | ||
"basic.swift", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "swift", | ||
"linter": "swiftlint", | ||
"paths": [ | ||
"test_data/basic.swift", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "swift", | ||
"linter": "swiftlint", | ||
"paths": [ | ||
"test_data/subdir/basic.swift", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |