Skip to content

Commit

Permalink
Auto-add missing snapshots (#948)
Browse files Browse the repository at this point in the history
Create new snapshots from
https://github.com/trunk-io/plugins/actions/runs/12649307505

Co-authored-by: TylerJang27 <[email protected]>
  • Loading branch information
trunk-open-pr-bot[bot] and TylerJang27 authored Jan 7, 2025
1 parent 6fffc1d commit bec401b
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 0 deletions.
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": [],
}
`;
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": [],
}
`;
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": [],
}
`;

0 comments on commit bec401b

Please sign in to comment.