Skip to content

Commit

Permalink
add new snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed May 13, 2024
1 parent 991870b commit 8c023ee
Show file tree
Hide file tree
Showing 2 changed files with 156 additions and 0 deletions.
76 changes: 76 additions & 0 deletions linters/swiftlint/test_data/swiftlint_v0.55.0_basic.check.shot
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": [],
}
`;
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": [],
}
`;

0 comments on commit 8c023ee

Please sign in to comment.