diff options
author | Brenley Dueck <brenleydueck@gmail.com> | 2022-09-28 11:47:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 18:47:48 +0200 |
commit | 23125b275f282f96a6316d11f97e5603dab0d009 (patch) | |
tree | 374ef90c365657aca64c58ecb007ce510472ab24 /cli/tests | |
parent | 9c861ec4301397456e249923c881d9d3b56651f4 (diff) |
feat(lint): add --compact flag for terse output (#15926)
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/lint_tests.rs | 7 | ||||
-rw-r--r-- | cli/tests/testdata/lint/expected_compact.out | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/integration/lint_tests.rs b/cli/tests/integration/lint_tests.rs index 5ed12f59e..6b78e0609 100644 --- a/cli/tests/integration/lint_tests.rs +++ b/cli/tests/integration/lint_tests.rs @@ -42,6 +42,13 @@ itest!(json { exit_code: 1, }); +itest!(compact { + args: + "lint --compact lint/without_config/file1.js lint/without_config/file2.ts lint/without_config/ignored_file.tss", + output: "lint/expected_compact.out", + exit_code: 1, +}); + itest!(ignore { args: "lint --ignore=lint/without_config/file1.js,lint/without_config/malformed.js,lint/without_config/lint_with_config/ lint/without_config/", diff --git a/cli/tests/testdata/lint/expected_compact.out b/cli/tests/testdata/lint/expected_compact.out new file mode 100644 index 000000000..03b77faa1 --- /dev/null +++ b/cli/tests/testdata/lint/expected_compact.out @@ -0,0 +1,5 @@ +[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) +[WILDCARD]file2.ts: line 3, col 14 - Empty block statement (no-empty) +Found 3 problems +Checked 2 files |