Commit 4294fa5d authored by Peter Leitzen's avatar Peter Leitzen

Lefthook: Do not reveal RuboCop TODOs in pre-push hook

Having `REVEAL_RUBOCOP_TODO=1` reveals RuboCop TODOs and sometimes
prevents pushing code.

This commit hides any RuboCop TODOs in lefthook.
parent fbfeff74
......@@ -32,7 +32,7 @@ pre-push:
tags: backend style
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
glob: '*.rb'
run: bundle exec rubocop --parallel --force-exclusion {files}
run: REVEAL_RUBOCOP_TODO=0 bundle exec rubocop --parallel --force-exclusion {files}
vale: # Requires Vale: https://docs.gitlab.com/ee/development/documentation/#install-linters
tags: documentation style
files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment