Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-add missing snapshots #864

Merged
merged 1 commit into from
Sep 5, 2024
Merged
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
101 changes: 101 additions & 0 deletions linters/regal/test_data/regal_v0.26.0_basic.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter regal test basic 1`] = `
{
"issues": [
{
"code": "opa-fmt",
"column": "1",
"file": "test_data/basic.in.rego",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "1",
"linter": "regal",
"message": "File should be formatted with \`opa fmt\`",
"targetType": "rego",
},
{
"code": "directory-package-mismatch",
"column": "9",
"file": "test_data/basic.in.rego",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "1",
"linter": "regal",
"message": "Directory structure should mirror package",
"targetType": "rego",
},
{
"code": "prefer-snake-case",
"column": "1",
"file": "test_data/basic.in.rego",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "12",
"linter": "regal",
"message": "Prefer snake_case for names",
"ranges": [
{
"filePath": "test_data/basic.in.rego",
"length": "10",
"offset": "119",
},
],
"targetType": "rego",
},
{
"code": "non-raw-regex-pattern",
"column": "27",
"file": "test_data/basic.in.rego",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "12",
"linter": "regal",
"message": "Use raw strings for regex patterns",
"ranges": [
{
"filePath": "test_data/basic.in.rego",
"length": "18",
"offset": "145",
},
],
"targetType": "rego",
},
{
"code": "use-assignment-operator",
"column": "15",
"file": "test_data/basic.in.rego",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "5",
"linter": "regal",
"message": "Prefer := over = for assignment",
"targetType": "rego",
},
],
"lintActions": [
{
"command": "lint",
"fileGroupName": "rego",
"linter": "regal",
"paths": [
"test_data/basic.in.rego",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "rego",
"linter": "regal",
"paths": [
"test_data/basic.in.rego",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
Loading