Skip to content

Commit

Permalink
Update codespell and trufflehog snapshots (#497)
Browse files Browse the repository at this point in the history
New releases of each that each differ by 1 diagnostic from the previous.
Existing snapshot tests are fine
  • Loading branch information
TylerJang27 authored Oct 3, 2023
1 parent 1427b1f commit 428b87f
Show file tree
Hide file tree
Showing 5 changed files with 517 additions and 0 deletions.
175 changes: 175 additions & 0 deletions linters/codespell/test_data/codespell_v2.2.6_basic.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter codespell test basic 1`] = `
{
"issues": [
{
"code": "misspelled",
"file": "codespell.test.ts",
"level": "LEVEL_HIGH",
"line": "7",
"linter": "codespell",
"message": "callbak ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "codespell.test.ts",
"level": "LEVEL_HIGH",
"line": "7",
"linter": "codespell",
"message": "realy ==> really, relay",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_md.in.md",
"level": "LEVEL_HIGH",
"line": "5",
"linter": "codespell",
"message": "realy ==> really, relay",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "callbak ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "lamda ==> lambda",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"level": "LEVEL_HIGH",
"line": "22",
"linter": "codespell",
"message": "anme ==> name, anime",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"level": "LEVEL_HIGH",
"line": "17",
"linter": "codespell",
"message": "callbakc ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"level": "LEVEL_HIGH",
"line": "18",
"linter": "codespell",
"message": "callbak ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"level": "LEVEL_HIGH",
"line": "19",
"linter": "codespell",
"message": "asnyc ==> async",
"targetType": "ALL",
},
],
"lintActions": [
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
".trunk/trunk.yaml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"codespell.test.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"codespell_to_sarif.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"plugin.yaml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"result.json",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_md.in.md",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_py.in.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_ts.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/empty.in.txt",
],
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
139 changes: 139 additions & 0 deletions linters/codespell/test_data/codespell_v2.2.6_dictionary.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter codespell test dictionary 1`] = `
{
"issues": [
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "lamda ==> lambda",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"level": "LEVEL_HIGH",
"line": "22",
"linter": "codespell",
"message": "anme ==> name, anime",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"level": "LEVEL_HIGH",
"line": "17",
"linter": "codespell",
"message": "callbakc ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"level": "LEVEL_HIGH",
"line": "19",
"linter": "codespell",
"message": "asnyc ==> async",
"targetType": "ALL",
},
],
"lintActions": [
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
".codespellrc",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
".trunk/trunk.yaml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"codespell.test.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"codespell_to_sarif.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"plugin.yaml",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"result.json",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_md.in.md",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_py.in.py",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_ts.in.ts",
],
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/empty.in.txt",
],
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
Loading

0 comments on commit 428b87f

Please sign in to comment.