diff --git a/linters/codespell/test_data/codespell_v2.3.0_basic.check.shot b/linters/codespell/test_data/codespell_v2.3.0_basic.check.shot new file mode 100644 index 000000000..99c03a06a --- /dev/null +++ b/linters/codespell/test_data/codespell_v2.3.0_basic.check.shot @@ -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": [], +} +`; diff --git a/linters/codespell/test_data/codespell_v2.3.0_dictionary.check.shot b/linters/codespell/test_data/codespell_v2.3.0_dictionary.check.shot new file mode 100644 index 000000000..b75a1b02f --- /dev/null +++ b/linters/codespell/test_data/codespell_v2.3.0_dictionary.check.shot @@ -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": [], +} +`;