We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 017f906 commit 49a0309Copy full SHA for 49a0309
.gitlab-ci.yml
@@ -34,12 +34,14 @@ rubocop:
34
- .bundle
35
stage: lint
36
script:
37
- - bundle exec rubocop | tee output || exit_code=$?
+ - rubocop_exit_code=0; git_exit_code=0
38
+ - bundle exec rubocop -A | tee output || rubocop_exit_code=$?
39
+ - git diff --exit-code || git_exit_code=$?
40
- |
41
echo -e "\e[0Ksection_start:`date +%s`:glpa_summary\r\e[0KHeader of the summary"
42
grep -E '[[:digit:]] files inspected, ' output
43
echo -e "\e[0Ksection_end:`date +%s`:glpa_summary\r\e[0K"
- exit $exit_code
44
+ exit $(($rubocop_exit_code + $git_exit_code))
45
46
graphql_docs:
47
extends:
0 commit comments