-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new snapshots from https://github.com/trunk-io/plugins/actions/runs/12649307505 Co-authored-by: TylerJang27 <[email protected]>
- Loading branch information
1 parent
6fffc1d
commit bec401b
Showing
3 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
linters/golangci-lint/test_data/golangci_lint_v1.63.4_all.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,79 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter golangci-lint test all 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "godot", | ||
"column": "1", | ||
"file": "test_data/basic.go", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "5", | ||
"linter": "golangci-lint", | ||
"message": "Comment should end in a period", | ||
"targetType": "go", | ||
}, | ||
{ | ||
"code": "errcheck", | ||
"column": "12", | ||
"file": "test_data/basic.go", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "8", | ||
"linter": "golangci-lint", | ||
"message": "Error return value of \`time.Parse\` is not checked", | ||
"targetType": "go", | ||
}, | ||
{ | ||
"code": "unused", | ||
"column": "6", | ||
"file": "test_data/unused_func.go", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "5", | ||
"linter": "golangci-lint", | ||
"message": "func \`helper\` is unused", | ||
"targetType": "go", | ||
}, | ||
{ | ||
"code": "typecheck", | ||
"file": "test_data/wrapper/printer.go", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "golangci-lint", | ||
"message": ": # golangcilint_linter_test/wrapper | ||
wrapper/printer.go:12:23: undefined: Wrapper2", | ||
"targetType": "go", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "go", | ||
"linter": "golangci-lint", | ||
"paths": [ | ||
"test_data", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "go", | ||
"linter": "golangci-lint", | ||
"paths": [ | ||
"test_data/wrapper", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
55 changes: 55 additions & 0 deletions
55
linters/golangci-lint/test_data/golangci_lint_v1.63.4_empty.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,55 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter golangci-lint test empty 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "typecheck", | ||
"column": "1", | ||
"file": "test_data/empty.go", | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "golangci-lint", | ||
"message": "expected 'package', found 'EOF'", | ||
"targetType": "go", | ||
}, | ||
{ | ||
"code": "typecheck", | ||
"file": "test_data/wrapper/printer.go", | ||
"issueClass": "ISSUE_CLASS_EXISTING", | ||
"issueUrl": "https://golangci-lint.run/usage/linters/", | ||
"level": "LEVEL_HIGH", | ||
"line": "1", | ||
"linter": "golangci-lint", | ||
"message": ": # golangcilint_linter_test/wrapper | ||
wrapper/printer.go:12:23: undefined: Wrapper2", | ||
"targetType": "go", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "go", | ||
"linter": "golangci-lint", | ||
"paths": [ | ||
"test_data", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "go", | ||
"linter": "golangci-lint", | ||
"paths": [ | ||
"test_data/wrapper", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |
31 changes: 31 additions & 0 deletions
31
linters/golangci-lint/test_data/golangci_lint_v1.63.4_unbuildable.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,31 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
// trunk-upgrade-validation:RELEASE | ||
|
||
exports[`Testing linter golangci-lint test unbuildable 1`] = ` | ||
{ | ||
"issues": [ | ||
{ | ||
"code": "error", | ||
"file": ".", | ||
"issueClass": "ISSUE_CLASS_NEW", | ||
"level": "LEVEL_HIGH", | ||
"linter": "golangci-lint", | ||
"message": "typechecking error: build constraints exclude all Go files in /tmp/plugins_", | ||
"targetType": "go", | ||
}, | ||
], | ||
"lintActions": [ | ||
{ | ||
"command": "lint", | ||
"fileGroupName": "go", | ||
"linter": "golangci-lint", | ||
"paths": [ | ||
".", | ||
], | ||
"verb": "TRUNK_VERB_CHECK", | ||
}, | ||
], | ||
"taskFailures": [], | ||
"unformattedFiles": [], | ||
} | ||
`; |