From 5404924e741e4318d58297e48353d5d3db0b6172 Mon Sep 17 00:00:00 2001 From: Peter Leitzen <pleitzen@gitlab.com> Date: Fri, 6 May 2022 09:13:42 +0200 Subject: [PATCH] Lefthook: Do not reveal RuboCop TODOs for HAML lint Having `REVEAL_RUBOCOP_TODO=1` reveals RuboCop TODOs also for HAML lint which and sometimes prevents pushing code. This commit hides any RuboCop TODOs in lefthook also for HAML lint. --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index fb5e39c27c369..8bfa5d015c7f0 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -12,7 +12,7 @@ pre-push: tags: view haml style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD glob: '*.html.haml' - run: bundle exec haml-lint --config .haml-lint.yml {files} + run: REVEAL_RUBOCOP_TODO=0 bundle exec haml-lint --config .haml-lint.yml {files} markdownlint: tags: documentation style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD -- GitLab