diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-20 23:50:22 +0000 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /lefthook.yml | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) | |
download | gitlab-ce-9dc93a4519d9d5d7be48ff274127136236a3adb3.tar.gz |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'lefthook.yml')
-rw-r--r-- | lefthook.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lefthook.yml b/lefthook.yml index 9284b872e7f..daab6e7f4a0 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -6,35 +6,35 @@ pre-push: eslint: tags: frontend style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD - glob: "*.{js,vue}" + glob: '*.{js,vue}' run: yarn run lint:eslint {files} haml-lint: tags: view haml style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD - glob: "*.html.haml" + glob: '*.html.haml' run: 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 - glob: "doc/*.md" + glob: 'doc/*.md' run: yarn markdownlint {files} stylelint: tags: stylesheet css style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD - glob: "*.scss{,.css}" - run: yarn stylelint -q {files} + glob: '*.scss{,.css}' + run: yarn stylelint {files} prettier: tags: frontend style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD - glob: "*.{js,vue,graphql}" + glob: '*.{js,vue,graphql}' run: yarn run prettier --check {files} rubocop: 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} + glob: '*.rb' + 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 - glob: "doc/*.md" + glob: 'doc/*.md' run: if command -v vale 2> /dev/null; then vale --config .vale.ini --minAlertLevel error {files}; else echo "Vale not found. Install Vale"; fi |