saveourtool/benedikt

Return `exit-code` when `reporter` is invalid

Open

#25 opened on Dec 19, 2023

 (0 comments) (0 reactions) (0 assignees) (2 forks)auto 404
buggood first issue

Repository metrics

Stars
 (10 stars)
PR merge metrics
 (PR metrics pending)

Description

Now we get

<reporter> should be set to <sarif> or <checkstyle>
Error: Process completed with exit code 1.
Run if ((  == 0 ))
/home/runner/work/_temp/d4e0e34c-bf86-4484-a6e8-9993c[67](https://github.com/nulls/diktat/pull/3/checks#step:3:70)45502.sh: line 1: ((: == 0 : syntax error: operand expected (error token is "== 0 ")
/home/runner/work/_temp/d4e0e34c-bf86-4484-a6e8-9993c6745502.sh: line 14: ((: != 0 : syntax error: operand expected (error token is "!= 0 ")
/home/runner/work/_temp/d4e0e34c-bf86-4484-a6e8-9993c6745502.sh: line 21: ((: <= 1 : syntax error: operand expected (error token is "<= 1 ")
/home/runner/work/_temp/d4e0e34c-bf86-4484-a6e8-9993c6745502.sh: line 26: ((: != 1 : syntax error: operand expected (error token is "!= 1 ")
Error: Process completed with exit code 1.

Contributor guide