summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/testdata/lint/expected_from_stdin_json.out2
-rw-r--r--cli/tests/testdata/lint/expected_json.out6
-rw-r--r--cli/tests/testdata/lint/with_report_config_override.out4
3 files changed, 6 insertions, 6 deletions
diff --git a/cli/tests/testdata/lint/expected_from_stdin_json.out b/cli/tests/testdata/lint/expected_from_stdin_json.out
index 26bf7ddc7..9e1188bcd 100644
--- a/cli/tests/testdata/lint/expected_from_stdin_json.out
+++ b/cli/tests/testdata/lint/expected_from_stdin_json.out
@@ -1,6 +1,7 @@
{
"diagnostics": [
{
+ "filename": "[WILDCARD]$deno$stdin.ts",
"range": {
"start": {
"line": 1,
@@ -13,7 +14,6 @@
"bytePos": 11
}
},
- "filename": "[WILDCARD]$deno$stdin.ts",
"message": "`any` type is not allowed",
"code": "no-explicit-any",
"hint": [WILDCARD]
diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out
index 08ea0d3e0..95c3d30ba 100644
--- a/cli/tests/testdata/lint/expected_json.out
+++ b/cli/tests/testdata/lint/expected_json.out
@@ -1,6 +1,7 @@
{
"diagnostics": [
{
+ "filename": "[WILDCARD]file1.js",
"range": {
"start": {
"line": 1,
@@ -13,12 +14,12 @@
"bytePos": 19
}
},
- "filename": "[WILDCARD]file1.js",
"message": "Ignore directive requires lint rule name(s)",
"code": "ban-untagged-ignore",
"hint": [WILDCARD]
},
{
+ "filename": "[WILDCARD]file1.js",
"range": {
"start": {
"line": 2,
@@ -31,12 +32,12 @@
"bytePos": 36
}
},
- "filename": "[WILDCARD]file1.js",
"message": "Empty block statement",
"code": "no-empty",
"hint": [WILDCARD]
},
{
+ "filename": "[WILDCARD]file2.ts",
"range": {
"start": {
"line": 3,
@@ -49,7 +50,6 @@
"bytePos": 59
}
},
- "filename": "[WILDCARD]file2.ts",
"message": "Empty block statement",
"code": "no-empty",
"hint": [WILDCARD]
diff --git a/cli/tests/testdata/lint/with_report_config_override.out b/cli/tests/testdata/lint/with_report_config_override.out
index ac633d911..7ca748158 100644
--- a/cli/tests/testdata/lint/with_report_config_override.out
+++ b/cli/tests/testdata/lint/with_report_config_override.out
@@ -1,6 +1,7 @@
{
"diagnostics": [
{
+ "filename": "[WILDCARD]a.ts",
"range": {
"start": {
"line": 1,
@@ -13,12 +14,12 @@
"bytePos": 12
}
},
- "filename": "[WILDCARD]a.ts",
"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,
@@ -31,7 +32,6 @@
"bytePos": 25
}
},
- "filename": "[WILDCARD]a.ts",
"message": "`add` is never used",
"code": "no-unused-vars",
"hint": "If this is intentional, prefix it with an underscore like `_add`"