summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lint
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-10 13:22:13 -0700
committerGitHub <noreply@github.com>2024-02-10 20:22:13 +0000
commitf5e46c9bf2f50d66a953fa133161fc829cecff06 (patch)
tree8faf2f5831c1c7b11d842cd9908d141082c869a5 /cli/tests/testdata/lint
parentd2477f780630a812bfd65e3987b70c0d309385bb (diff)
chore: move cli/tests/ -> tests/ (#22369)
This looks like a massive PR, but it's only a move from cli/tests -> tests, and updates of relative paths for files. This is the first step towards aggregate all of the integration test files under tests/, which will lead to a set of integration tests that can run without the CLI binary being built. While we could leave these tests under `cli`, it would require us to keep a more complex directory structure for the various test runners. In addition, we have a lot of complexity to ignore various test files in the `cli` project itself (cargo publish exclusion rules, autotests = false, etc). And finally, the `tests/` folder will eventually house the `test_ffi`, `test_napi` and other testing code, reducing the size of the root repo directory. For easier review, the extremely large and noisy "move" is in the first commit (with no changes -- just a move), while the remainder of the changes to actual files is in the second commit.
Diffstat (limited to 'cli/tests/testdata/lint')
-rw-r--r--cli/tests/testdata/lint/Deno.compact.format.jsonc11
-rw-r--r--cli/tests/testdata/lint/Deno.jsonc10
-rw-r--r--cli/tests/testdata/lint/Deno.malformed.jsonc11
-rw-r--r--cli/tests/testdata/lint/Deno.malformed2.jsonc11
-rw-r--r--cli/tests/testdata/lint/Deno.no_tags.jsonc15
-rw-r--r--cli/tests/testdata/lint/deno.glob.json11
-rw-r--r--cli/tests/testdata/lint/expected.out3
-rw-r--r--cli/tests/testdata/lint/expected_compact.out4
-rw-r--r--cli/tests/testdata/lint/expected_from_stdin.out12
-rw-r--r--cli/tests/testdata/lint/expected_from_stdin_json.out23
-rw-r--r--cli/tests/testdata/lint/expected_glob.out3
-rw-r--r--cli/tests/testdata/lint/expected_ignore.out3
-rw-r--r--cli/tests/testdata/lint/expected_json.out64
-rw-r--r--cli/tests/testdata/lint/expected_quiet.out20
-rw-r--r--cli/tests/testdata/lint/expected_rules.out2
-rw-r--r--cli/tests/testdata/lint/expected_verbose.out3
-rw-r--r--cli/tests/testdata/lint/glob/data/tes.ts3
-rw-r--r--cli/tests/testdata/lint/glob/data/test1.js3
-rw-r--r--cli/tests/testdata/lint/glob/data/test1.ts3
-rw-r--r--cli/tests/testdata/lint/glob/data/test12.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/bar.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/bazz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/fizz.ts2
-rw-r--r--cli/tests/testdata/lint/glob/nested/fizz/foo.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/bar.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/bazz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/fizz.ts3
-rw-r--r--cli/tests/testdata/lint/glob/nested/foo/foo.ts3
-rw-r--r--cli/tests/testdata/lint/glob/pages/[id].ts3
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted.js1
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted.js.out2
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted_fixed1.js1
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted_fixed1.js.out1
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted_fixed2.js1
-rw-r--r--cli/tests/testdata/lint/watch/badly_linted_fixed2.js.out0
-rw-r--r--cli/tests/testdata/lint/with_config.out22
-rw-r--r--cli/tests/testdata/lint/with_config/a.ts4
-rw-r--r--cli/tests/testdata/lint/with_config/b.ts4
-rw-r--r--cli/tests/testdata/lint/with_config_and_flags.out22
-rw-r--r--cli/tests/testdata/lint/with_config_without_tags.out22
-rw-r--r--cli/tests/testdata/lint/with_malformed_config.out4
-rw-r--r--cli/tests/testdata/lint/with_malformed_config2.out4
-rw-r--r--cli/tests/testdata/lint/with_report_config_compact.out4
-rw-r--r--cli/tests/testdata/lint/with_report_config_override.out41
-rw-r--r--cli/tests/testdata/lint/without_config/file1.js2
-rw-r--r--cli/tests/testdata/lint/without_config/file2.ts6
-rw-r--r--cli/tests/testdata/lint/without_config/ignored_file.ts3
-rw-r--r--cli/tests/testdata/lint/without_config/malformed.js4
48 files changed, 0 insertions, 392 deletions
diff --git a/cli/tests/testdata/lint/Deno.compact.format.jsonc b/cli/tests/testdata/lint/Deno.compact.format.jsonc
deleted file mode 100644
index f3487501a..000000000
--- a/cli/tests/testdata/lint/Deno.compact.format.jsonc
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "lint": {
- "include": ["with_config/"],
- "exclude": ["with_config/b.ts"],
- "rules": {
- "tags": ["recommended"],
- "include": ["ban-untagged-todo"]
- },
- "report": "compact"
- }
-}
diff --git a/cli/tests/testdata/lint/Deno.jsonc b/cli/tests/testdata/lint/Deno.jsonc
deleted file mode 100644
index e9c03cca4..000000000
--- a/cli/tests/testdata/lint/Deno.jsonc
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "lint": {
- "include": ["with_config/"],
- "exclude": ["with_config/b.ts"],
- "rules": {
- "tags": ["recommended"],
- "include": ["ban-untagged-todo"]
- }
- }
-}
diff --git a/cli/tests/testdata/lint/Deno.malformed.jsonc b/cli/tests/testdata/lint/Deno.malformed.jsonc
deleted file mode 100644
index fa71cd851..000000000
--- a/cli/tests/testdata/lint/Deno.malformed.jsonc
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "lint": {
- "include": ["with_config/"],
- "exclude": ["with_config/b.ts"],
- "dont_know_this_field": {},
- "rules": {
- "tags": ["recommended"],
- "include": ["ban-untagged-todo"]
- }
- }
-}
diff --git a/cli/tests/testdata/lint/Deno.malformed2.jsonc b/cli/tests/testdata/lint/Deno.malformed2.jsonc
deleted file mode 100644
index fa71cd851..000000000
--- a/cli/tests/testdata/lint/Deno.malformed2.jsonc
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "lint": {
- "include": ["with_config/"],
- "exclude": ["with_config/b.ts"],
- "dont_know_this_field": {},
- "rules": {
- "tags": ["recommended"],
- "include": ["ban-untagged-todo"]
- }
- }
-}
diff --git a/cli/tests/testdata/lint/Deno.no_tags.jsonc b/cli/tests/testdata/lint/Deno.no_tags.jsonc
deleted file mode 100644
index b63600a90..000000000
--- a/cli/tests/testdata/lint/Deno.no_tags.jsonc
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "lint": {
- "include": [
- "with_config/"
- ],
- "exclude": [
- "with_config/b.ts"
- ],
- "rules": {
- "include": [
- "ban-untagged-todo"
- ]
- }
- }
-}
diff --git a/cli/tests/testdata/lint/deno.glob.json b/cli/tests/testdata/lint/deno.glob.json
deleted file mode 100644
index f6781b0d8..000000000
--- a/cli/tests/testdata/lint/deno.glob.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "lint": {
- "include": [
- "glob/data/test1.?s",
- "glob/nested/foo/*.ts",
- "glob/nested/fizz/*.ts",
- "glob/pages/[id].ts"
- ],
- "exclude": ["glob/nested/**/*bazz.ts"]
- }
-}
diff --git a/cli/tests/testdata/lint/expected.out b/cli/tests/testdata/lint/expected.out
deleted file mode 100644
index eb8a2651a..000000000
--- a/cli/tests/testdata/lint/expected.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-Found 3 problems
-Checked 3 files
diff --git a/cli/tests/testdata/lint/expected_compact.out b/cli/tests/testdata/lint/expected_compact.out
deleted file mode 100644
index d1b2b922b..000000000
--- a/cli/tests/testdata/lint/expected_compact.out
+++ /dev/null
@@ -1,4 +0,0 @@
-[WILDCARD]file1.js: line 1, col 1 - Ignore directive requires lint rule name(s) (ban-untagged-ignore)
-[WILDCARD]file1.js: line 2, col 15 - Empty block statement (no-empty)
-Found 2 problems
-Checked 1 file
diff --git a/cli/tests/testdata/lint/expected_from_stdin.out b/cli/tests/testdata/lint/expected_from_stdin.out
deleted file mode 100644
index 59f32166f..000000000
--- a/cli/tests/testdata/lint/expected_from_stdin.out
+++ /dev/null
@@ -1,12 +0,0 @@
-error[no-explicit-any]: `any` type is not allowed
- --> [WILDCARD]$deno$stdin.ts:1:9
- |
-1 | let _a: any;
- | ^^^
- = hint: Use a specific type other than `any`
-
- docs: https://lint.deno.land/#no-explicit-any
-
-
-Found 1 problem
-Checked 1 file
diff --git a/cli/tests/testdata/lint/expected_from_stdin_json.out b/cli/tests/testdata/lint/expected_from_stdin_json.out
deleted file mode 100644
index 9e1188bcd..000000000
--- a/cli/tests/testdata/lint/expected_from_stdin_json.out
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "diagnostics": [
- {
- "filename": "[WILDCARD]$deno$stdin.ts",
- "range": {
- "start": {
- "line": 1,
- "col": 8,
- "bytePos": 8
- },
- "end": {
- "line": 1,
- "col": 11,
- "bytePos": 11
- }
- },
- "message": "`any` type is not allowed",
- "code": "no-explicit-any",
- "hint": [WILDCARD]
- }
- ],
- "errors": []
-}
diff --git a/cli/tests/testdata/lint/expected_glob.out b/cli/tests/testdata/lint/expected_glob.out
deleted file mode 100644
index eb8a2651a..000000000
--- a/cli/tests/testdata/lint/expected_glob.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-Found 3 problems
-Checked 3 files
diff --git a/cli/tests/testdata/lint/expected_ignore.out b/cli/tests/testdata/lint/expected_ignore.out
deleted file mode 100644
index b5f78ee04..000000000
--- a/cli/tests/testdata/lint/expected_ignore.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-Found 1 problem
-Checked 2 files
diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out
deleted file mode 100644
index 95c3d30ba..000000000
--- a/cli/tests/testdata/lint/expected_json.out
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "diagnostics": [
- {
- "filename": "[WILDCARD]file1.js",
- "range": {
- "start": {
- "line": 1,
- "col": 0,
- "bytePos": 0
- },
- "end": {
- "line": 1,
- "col": 19,
- "bytePos": 19
- }
- },
- "message": "Ignore directive requires lint rule name(s)",
- "code": "ban-untagged-ignore",
- "hint": [WILDCARD]
- },
- {
- "filename": "[WILDCARD]file1.js",
- "range": {
- "start": {
- "line": 2,
- "col": 14,
- "bytePos": 34
- },
- "end": {
- "line": 2,
- "col": 16,
- "bytePos": 36
- }
- },
- "message": "Empty block statement",
- "code": "no-empty",
- "hint": [WILDCARD]
- },
- {
- "filename": "[WILDCARD]file2.ts",
- "range": {
- "start": {
- "line": 3,
- "col": 13,
- "bytePos": 57
- },
- "end": {
- "line": 3,
- "col": 15,
- "bytePos": 59
- }
- },
- "message": "Empty block statement",
- "code": "no-empty",
- "hint": [WILDCARD]
- }
- ],
- "errors": [
- {
- "file_path": "[WILDCARD]malformed.js",
- "message": "Expected '{', got 'B' at [WILDCARD]malformed.js:4:16\n\n export class A B C\n ~"
- }
- ]
-}
diff --git a/cli/tests/testdata/lint/expected_quiet.out b/cli/tests/testdata/lint/expected_quiet.out
deleted file mode 100644
index e46a94a2d..000000000
--- a/cli/tests/testdata/lint/expected_quiet.out
+++ /dev/null
@@ -1,20 +0,0 @@
-error[ban-untagged-ignore]: Ignore directive requires lint rule name(s)
- --> [WILDCARD]file1.js:1:1
- |
-1 | // deno-lint-ignore
- | ^^^^^^^^^^^^^^^^^^^
- = hint: Add one or more lint rule names. E.g. // deno-lint-ignore adjacent-overload-signatures
-
- docs: https://lint.deno.land/#ban-untagged-ignore
-
-
-error[no-empty]: Empty block statement
- --> [WILDCARD]file1.js:2:15
- |
-2 | while (false) {}
- | ^^
- = hint: Add code or comment to the empty block
-
- docs: https://lint.deno.land/#no-empty
-
-
diff --git a/cli/tests/testdata/lint/expected_rules.out b/cli/tests/testdata/lint/expected_rules.out
deleted file mode 100644
index 4afab7b9b..000000000
--- a/cli/tests/testdata/lint/expected_rules.out
+++ /dev/null
@@ -1,2 +0,0 @@
-Available rules:
-[WILDCARD]
diff --git a/cli/tests/testdata/lint/expected_verbose.out b/cli/tests/testdata/lint/expected_verbose.out
deleted file mode 100644
index eb8a2651a..000000000
--- a/cli/tests/testdata/lint/expected_verbose.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-Found 3 problems
-Checked 3 files
diff --git a/cli/tests/testdata/lint/glob/data/tes.ts b/cli/tests/testdata/lint/glob/data/tes.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/data/tes.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test1.js b/cli/tests/testdata/lint/glob/data/test1.js
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/data/test1.js
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test1.ts b/cli/tests/testdata/lint/glob/data/test1.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/data/test1.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/data/test12.ts b/cli/tests/testdata/lint/glob/data/test12.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/data/test12.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/bar.ts b/cli/tests/testdata/lint/glob/nested/fizz/bar.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/fizz/bar.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts b/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/fizz/bazz.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts b/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts
deleted file mode 100644
index 6940729e9..000000000
--- a/cli/tests/testdata/lint/glob/nested/fizz/fizz.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-function foo() {
-}
diff --git a/cli/tests/testdata/lint/glob/nested/fizz/foo.ts b/cli/tests/testdata/lint/glob/nested/fizz/foo.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/fizz/foo.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/bar.ts b/cli/tests/testdata/lint/glob/nested/foo/bar.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/foo/bar.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/bazz.ts b/cli/tests/testdata/lint/glob/nested/foo/bazz.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/foo/bazz.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/fizz.ts b/cli/tests/testdata/lint/glob/nested/foo/fizz.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/foo/fizz.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/nested/foo/foo.ts b/cli/tests/testdata/lint/glob/nested/foo/foo.ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/nested/foo/foo.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/glob/pages/[id].ts b/cli/tests/testdata/lint/glob/pages/[id].ts
deleted file mode 100644
index 26f07fba5..000000000
--- a/cli/tests/testdata/lint/glob/pages/[id].ts
+++ /dev/null
@@ -1,3 +0,0 @@
-function foo() {
-
-} \ No newline at end of file
diff --git a/cli/tests/testdata/lint/watch/badly_linted.js b/cli/tests/testdata/lint/watch/badly_linted.js
deleted file mode 100644
index 8d1c1fe79..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted.js
+++ /dev/null
@@ -1 +0,0 @@
-let a = 5;
diff --git a/cli/tests/testdata/lint/watch/badly_linted.js.out b/cli/tests/testdata/lint/watch/badly_linted.js.out
deleted file mode 100644
index 07ae031c3..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted.js.out
+++ /dev/null
@@ -1,2 +0,0 @@
-error[no-unused-vars]: `a` is never used
-error[prefer-const]: `a` is never reassigned
diff --git a/cli/tests/testdata/lint/watch/badly_linted_fixed1.js b/cli/tests/testdata/lint/watch/badly_linted_fixed1.js
deleted file mode 100644
index bfccee47d..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted_fixed1.js
+++ /dev/null
@@ -1 +0,0 @@
-let _a = 5;
diff --git a/cli/tests/testdata/lint/watch/badly_linted_fixed1.js.out b/cli/tests/testdata/lint/watch/badly_linted_fixed1.js.out
deleted file mode 100644
index 67e3c9dd8..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted_fixed1.js.out
+++ /dev/null
@@ -1 +0,0 @@
-error[prefer-const]: `_a` is never reassigned
diff --git a/cli/tests/testdata/lint/watch/badly_linted_fixed2.js b/cli/tests/testdata/lint/watch/badly_linted_fixed2.js
deleted file mode 100644
index 94fe8701b..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted_fixed2.js
+++ /dev/null
@@ -1 +0,0 @@
-const _a = 5;
diff --git a/cli/tests/testdata/lint/watch/badly_linted_fixed2.js.out b/cli/tests/testdata/lint/watch/badly_linted_fixed2.js.out
deleted file mode 100644
index e69de29bb..000000000
--- a/cli/tests/testdata/lint/watch/badly_linted_fixed2.js.out
+++ /dev/null
diff --git a/cli/tests/testdata/lint/with_config.out b/cli/tests/testdata/lint/with_config.out
deleted file mode 100644
index cffd6b9c7..000000000
--- a/cli/tests/testdata/lint/with_config.out
+++ /dev/null
@@ -1,22 +0,0 @@
-error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue)
- --> [WILDCARD]a.ts:1:1
- |
-1 | // TODO: foo
- | ^^^^^^^^^^^^
- = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123)
-
- docs: https://lint.deno.land/#ban-untagged-todo
-
-
-error[no-unused-vars]: `add` is never used
- --> [WILDCARD]a.ts:2:10
- |
-2 | function add(a: number, b: number): number {
- | ^^^
- = hint: If this is intentional, prefix it with an underscore like `_add`
-
- docs: https://lint.deno.land/#no-unused-vars
-
-
-Found 2 problems
-Checked 1 file
diff --git a/cli/tests/testdata/lint/with_config/a.ts b/cli/tests/testdata/lint/with_config/a.ts
deleted file mode 100644
index c378218a3..000000000
--- a/cli/tests/testdata/lint/with_config/a.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// TODO: foo
-function add(a: number, b: number): number {
- return a + b;
-}
diff --git a/cli/tests/testdata/lint/with_config/b.ts b/cli/tests/testdata/lint/with_config/b.ts
deleted file mode 100644
index d5647067e..000000000
--- a/cli/tests/testdata/lint/with_config/b.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// TODO: this file should be ignored
-function subtract(a: number, b: number): number {
- return a - b;
-}
diff --git a/cli/tests/testdata/lint/with_config_and_flags.out b/cli/tests/testdata/lint/with_config_and_flags.out
deleted file mode 100644
index f3ad3cafb..000000000
--- a/cli/tests/testdata/lint/with_config_and_flags.out
+++ /dev/null
@@ -1,22 +0,0 @@
-error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue)
- --> [WILDCARD]b.ts:1:1
- |
-1 | // TODO: this file should be ignored
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123)
-
- docs: https://lint.deno.land/#ban-untagged-todo
-
-
-error[no-unused-vars]: `subtract` is never used
- --> [WILDCARD]b.ts:2:10
- |
-2 | function subtract(a: number, b: number): number {
- | ^^^^^^^^
- = hint: If this is intentional, prefix it with an underscore like `_subtract`
-
- docs: https://lint.deno.land/#no-unused-vars
-
-
-Found 2 problems
-Checked 1 file
diff --git a/cli/tests/testdata/lint/with_config_without_tags.out b/cli/tests/testdata/lint/with_config_without_tags.out
deleted file mode 100644
index cffd6b9c7..000000000
--- a/cli/tests/testdata/lint/with_config_without_tags.out
+++ /dev/null
@@ -1,22 +0,0 @@
-error[ban-untagged-todo]: TODO should be tagged with (@username) or (#issue)
- --> [WILDCARD]a.ts:1:1
- |
-1 | // TODO: foo
- | ^^^^^^^^^^^^
- = hint: Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123)
-
- docs: https://lint.deno.land/#ban-untagged-todo
-
-
-error[no-unused-vars]: `add` is never used
- --> [WILDCARD]a.ts:2:10
- |
-2 | function add(a: number, b: number): number {
- | ^^^
- = hint: If this is intentional, prefix it with an underscore like `_add`
-
- docs: https://lint.deno.land/#no-unused-vars
-
-
-Found 2 problems
-Checked 1 file
diff --git a/cli/tests/testdata/lint/with_malformed_config.out b/cli/tests/testdata/lint/with_malformed_config.out
deleted file mode 100644
index 1c0f0fff6..000000000
--- a/cli/tests/testdata/lint/with_malformed_config.out
+++ /dev/null
@@ -1,4 +0,0 @@
-error: Failed to parse "lint" configuration
-
-Caused by:
- unknown field `dont_know_this_field`, expected one of `rules`, `include`, `exclude`, `files`, `report`
diff --git a/cli/tests/testdata/lint/with_malformed_config2.out b/cli/tests/testdata/lint/with_malformed_config2.out
deleted file mode 100644
index 1c0f0fff6..000000000
--- a/cli/tests/testdata/lint/with_malformed_config2.out
+++ /dev/null
@@ -1,4 +0,0 @@
-error: Failed to parse "lint" configuration
-
-Caused by:
- unknown field `dont_know_this_field`, expected one of `rules`, `include`, `exclude`, `files`, `report`
diff --git a/cli/tests/testdata/lint/with_report_config_compact.out b/cli/tests/testdata/lint/with_report_config_compact.out
deleted file mode 100644
index fe1241264..000000000
--- a/cli/tests/testdata/lint/with_report_config_compact.out
+++ /dev/null
@@ -1,4 +0,0 @@
-[WILDCARD]a.ts: line 1, col 1 - TODO should be tagged with (@username) or (#issue) (ban-untagged-todo)
-[WILDCARD]a.ts: line 2, col 10 - `add` is never used (no-unused-vars)
-Found 2 problems
-Checked 1 file
diff --git a/cli/tests/testdata/lint/with_report_config_override.out b/cli/tests/testdata/lint/with_report_config_override.out
deleted file mode 100644
index 7ca748158..000000000
--- a/cli/tests/testdata/lint/with_report_config_override.out
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "diagnostics": [
- {
- "filename": "[WILDCARD]a.ts",
- "range": {
- "start": {
- "line": 1,
- "col": 0,
- "bytePos": 0
- },
- "end": {
- "line": 1,
- "col": 12,
- "bytePos": 12
- }
- },
- "message": "TODO should be tagged with (@username) or (#issue)",
- "code": "ban-untagged-todo",
- "hint": "Add a user tag or issue reference to the TODO comment, e.g. TODO(@djones), TODO(djones), TODO(#123)"
- },
- {
- "filename": "[WILDCARD]a.ts",
- "range": {
- "start": {
- "line": 2,
- "col": 9,
- "bytePos": 22
- },
- "end": {
- "line": 2,
- "col": 12,
- "bytePos": 25
- }
- },
- "message": "`add` is never used",
- "code": "no-unused-vars",
- "hint": "If this is intentional, prefix it with an underscore like `_add`"
- }
- ],
- "errors": []
-}
diff --git a/cli/tests/testdata/lint/without_config/file1.js b/cli/tests/testdata/lint/without_config/file1.js
deleted file mode 100644
index 737f26818..000000000
--- a/cli/tests/testdata/lint/without_config/file1.js
+++ /dev/null
@@ -1,2 +0,0 @@
-// deno-lint-ignore
-while (false) {}
diff --git a/cli/tests/testdata/lint/without_config/file2.ts b/cli/tests/testdata/lint/without_config/file2.ts
deleted file mode 100644
index 73c612c35..000000000
--- a/cli/tests/testdata/lint/without_config/file2.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-try {
- await Deno.open("./some/file.txt");
-} catch (_e) {}
-
-// deno-lint-ignore no-explicit-any
-function _foo(): any {}
diff --git a/cli/tests/testdata/lint/without_config/ignored_file.ts b/cli/tests/testdata/lint/without_config/ignored_file.ts
deleted file mode 100644
index 97befafa3..000000000
--- a/cli/tests/testdata/lint/without_config/ignored_file.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-// deno-lint-ignore-file
-
-function foo(): any {}
diff --git a/cli/tests/testdata/lint/without_config/malformed.js b/cli/tests/testdata/lint/without_config/malformed.js
deleted file mode 100644
index 9b64da898..000000000
--- a/cli/tests/testdata/lint/without_config/malformed.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// deno-fmt-ignore-file
-
-// intentionally malformed file
-export class A B C \ No newline at end of file