summaryrefslogtreecommitdiff
path: root/tests/specs/lint/with_glob_config
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/lint/with_glob_config')
-rw-r--r--tests/specs/lint/with_glob_config/__test__.jsonc16
-rw-r--r--tests/specs/lint/with_glob_config/deno.glob.json11
-rw-r--r--tests/specs/lint/with_glob_config/glob/data/tes.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/data/test1.js2
-rw-r--r--tests/specs/lint/with_glob_config/glob/data/test1.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/data/test12.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/fizz/bar.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/fizz/bazz.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/fizz/fizz.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/fizz/foo.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/foo/bar.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/foo/bazz.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/foo/fizz.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/nested/foo/foo.ts2
-rw-r--r--tests/specs/lint/with_glob_config/glob/pages/[id].ts2
-rw-r--r--tests/specs/lint/with_glob_config/with_glob_config_unix.out94
-rw-r--r--tests/specs/lint/with_glob_config/with_glob_config_windows.out94
17 files changed, 241 insertions, 0 deletions
diff --git a/tests/specs/lint/with_glob_config/__test__.jsonc b/tests/specs/lint/with_glob_config/__test__.jsonc
new file mode 100644
index 000000000..578ed2f85
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/__test__.jsonc
@@ -0,0 +1,16 @@
+{
+ "steps": [
+ {
+ "if": "windows",
+ "args": "lint --config deno.glob.json",
+ "output": "with_glob_config_windows.out",
+ "exitCode": 1
+ },
+ {
+ "if": "unix",
+ "args": "lint --config deno.glob.json",
+ "output": "with_glob_config_unix.out",
+ "exitCode": 1
+ }
+ ]
+}
diff --git a/tests/specs/lint/with_glob_config/deno.glob.json b/tests/specs/lint/with_glob_config/deno.glob.json
new file mode 100644
index 000000000..f6781b0d8
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/deno.glob.json
@@ -0,0 +1,11 @@
+{
+ "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/tests/specs/lint/with_glob_config/glob/data/tes.ts b/tests/specs/lint/with_glob_config/glob/data/tes.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/data/tes.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/data/test1.js b/tests/specs/lint/with_glob_config/glob/data/test1.js
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/data/test1.js
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/data/test1.ts b/tests/specs/lint/with_glob_config/glob/data/test1.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/data/test1.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/data/test12.ts b/tests/specs/lint/with_glob_config/glob/data/test12.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/data/test12.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/fizz/bar.ts b/tests/specs/lint/with_glob_config/glob/nested/fizz/bar.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/fizz/bar.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/fizz/bazz.ts b/tests/specs/lint/with_glob_config/glob/nested/fizz/bazz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/fizz/bazz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/fizz/fizz.ts b/tests/specs/lint/with_glob_config/glob/nested/fizz/fizz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/fizz/fizz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/fizz/foo.ts b/tests/specs/lint/with_glob_config/glob/nested/fizz/foo.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/fizz/foo.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/foo/bar.ts b/tests/specs/lint/with_glob_config/glob/nested/foo/bar.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/foo/bar.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/foo/bazz.ts b/tests/specs/lint/with_glob_config/glob/nested/foo/bazz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/foo/bazz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/foo/fizz.ts b/tests/specs/lint/with_glob_config/glob/nested/foo/fizz.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/foo/fizz.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/nested/foo/foo.ts b/tests/specs/lint/with_glob_config/glob/nested/foo/foo.ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/nested/foo/foo.ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/glob/pages/[id].ts b/tests/specs/lint/with_glob_config/glob/pages/[id].ts
new file mode 100644
index 000000000..6940729e9
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/glob/pages/[id].ts
@@ -0,0 +1,2 @@
+function foo() {
+}
diff --git a/tests/specs/lint/with_glob_config/with_glob_config_unix.out b/tests/specs/lint/with_glob_config/with_glob_config_unix.out
new file mode 100644
index 000000000..fad285cbe
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/with_glob_config_unix.out
@@ -0,0 +1,94 @@
+[UNORDERED_START]
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/fizz/bar.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/foo/foo.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/fizz/foo.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/foo/bar.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/data/test1.js:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/foo/fizz.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/nested/fizz/fizz.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/pages/[id].ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint/with_glob_config/glob/data/test1.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+[UNORDERED_END]
+
+
+Found 9 problems
+Checked 9 files
diff --git a/tests/specs/lint/with_glob_config/with_glob_config_windows.out b/tests/specs/lint/with_glob_config/with_glob_config_windows.out
new file mode 100644
index 000000000..2ba078791
--- /dev/null
+++ b/tests/specs/lint/with_glob_config/with_glob_config_windows.out
@@ -0,0 +1,94 @@
+[UNORDERED_START]
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\fizz\bar.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\foo\foo.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\fizz\foo.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\foo\bar.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\data\test1.js:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\foo\fizz.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\nested\fizz\fizz.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\pages\[id].ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+
+
+error[no-unused-vars]: `foo` is never used
+ --> [WILDLINE]lint\with_glob_config\glob\data\test1.ts:1:10
+ |
+1 | function foo() {
+ | ^^^
+ = hint: If this is intentional, prefix it with an underscore like `_foo`
+
+ docs: https://lint.deno.land/rules/no-unused-vars
+[UNORDERED_END]
+
+
+Found 9 problems
+Checked 9 files