-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e583c8
commit 68e555b
Showing
2 changed files
with
308 additions
and
0 deletions.
There are no files selected for viewing
169 changes: 169 additions & 0 deletions
169
linters/codespell/test_data/codespell_v2.3.0_basic.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
139
linters/codespell/test_data/codespell_v2.3.0_dictionary.check.shot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [], | ||
} | ||
`; |