Skip to content

Commit

Permalink
Auto add snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 authored and github-actions[bot] committed May 24, 2024
1 parent 7e583c8 commit 68e555b
Show file tree
Hide file tree
Showing 2 changed files with 308 additions and 0 deletions.
169 changes: 169 additions & 0 deletions linters/codespell/test_data/codespell_v2.3.0_basic.check.shot
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// trunk-upgrade-validation:RELEASE

exports[`Testing linter codespell test basic 1`] = `
{
"issues": [
{
"code": "misspelled",
"file": "test_data/basic_md.in.md",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "3",
"linter": "codespell",
"message": "reallly ==> really",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_md.in.md",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "5",
"linter": "codespell",
"message": "realy ==> really, relay",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "callbak ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "lamda ==> lambda",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "22",
"linter": "codespell",
"message": "anme ==> name, anime",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "17",
"linter": "codespell",
"message": "callbakc ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "18",
"linter": "codespell",
"message": "callbak ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "19",
"linter": "codespell",
"message": "asnyc ==> async",
"targetType": "ALL",
},
],
"lintActions": [
{
"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",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_md.in.md",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_py.in.py",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_ts.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/empty.in.txt",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;
139 changes: 139 additions & 0 deletions linters/codespell/test_data/codespell_v2.3.0_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_md.in.md",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "3",
"linter": "codespell",
"message": "reallly ==> really",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "20",
"linter": "codespell",
"message": "lamda ==> lambda",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_py.in.py",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "22",
"linter": "codespell",
"message": "anme ==> name, anime",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "17",
"linter": "codespell",
"message": "callbakc ==> callback",
"targetType": "ALL",
},
{
"code": "misspelled",
"file": "test_data/basic_ts.in.ts",
"issueClass": "ISSUE_CLASS_EXISTING",
"level": "LEVEL_HIGH",
"line": "19",
"linter": "codespell",
"message": "asnyc ==> async",
"targetType": "ALL",
},
],
"lintActions": [
{
"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",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_md.in.md",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_py.in.py",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/basic_ts.in.ts",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
{
"command": "lint",
"fileGroupName": "ALL",
"linter": "codespell",
"paths": [
"test_data/empty.in.txt",
],
"upstream": true,
"verb": "TRUNK_VERB_CHECK",
},
],
"taskFailures": [],
"unformattedFiles": [],
}
`;

0 comments on commit 68e555b

Please sign in to comment.