diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /lefthook.yml | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'lefthook.yml')
-rw-r--r-- | lefthook.yml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 00000000000..5e307f9af30 --- /dev/null +++ b/lefthook.yml @@ -0,0 +1,36 @@ +pre-push: + parallel: true + commands: + danger: + run: bundle exec danger dry_run + eslint: + tags: frontend style + files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD + glob: "*.{js,vue}" + run: yarn eslint --cache --max-warnings 0 --report-unused-disable-directives {files} + haml-lint: + tags: view haml style + files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD + glob: "*.html.haml" + run: bundle exec haml-lint --config .haml-lint.yml {files} + markdownlint: + tags: documentation style + files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD + glob: "*.md" + run: yarn markdownlint {files} + scss-lint: + tags: stylesheet css style + files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD + glob: "*.scss{,.css}" + exclude: "app/assets/stylesheets/pages/emojis.scss" + run: bundle exec scss-lint --config .scss-lint.yml {files} + rubocop: + tags: backend style + files: git diff --name-only $(git merge-base origin/master HEAD)..HEAD + glob: "*.rb" + run: 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 $(git merge-base origin/master HEAD)..HEAD + glob: "*.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 |