-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing_output_as_error to DriverDef (#1237)
Related to #1223
- Loading branch information
1 parent
2bd4ca8
commit 72d7594
Showing
8 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
qlty-cli/tests/cmd/check/missing_output_as_error.in/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.qlty/results | ||
.qlty/logs | ||
.qlty/out | ||
.qlty/sources |
15 changes: 15 additions & 0 deletions
15
qlty-cli/tests/cmd/check/missing_output_as_error.in/.qlty/qlty.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
config_version = "0" | ||
|
||
[plugins.definitions.exists] | ||
file_types = ["shell"] | ||
|
||
[plugins.definitions.exists.drivers.lint] | ||
prepare_script = "mkdir ${linter} && echo dir %2 > ${linter}/ls.cmd" | ||
script = "echo \"The plugin crashed for some reason\"" | ||
success_codes = [0] | ||
output = "tmpfile" | ||
missing_output_as_error = true | ||
|
||
[[plugin]] | ||
name = "exists" | ||
version = "1.0.0" |
2 changes: 2 additions & 0 deletions
2
qlty-cli/tests/cmd/check/missing_output_as_error.in/sample.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
echo "hi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[0/1] [..]Planning... [..]s | ||
[1/1] [..]Analyzing all targets...[..] | ||
❌ Lint error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Lint error exists: Exited with code 0 .qlty/out/invocations/invoke-[..].yaml | ||
[..]The plugin crashed for some reason[..] | ||
|
||
Checked 1 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
bin.name = "qlty" | ||
args = ["check", "--all", "--no-cache"] | ||
status.code = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters