Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": [],
}
`;
Loading