diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-03 12:08:55 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-03 12:08:55 +0000 |
commit | 2ac811ce685f906d3e54e78b23f61495c19ad595 (patch) | |
tree | 53b569e06a94fa57cffd5e2594b27db78af1fc26 /lefthook.yml | |
parent | d43cf10712ecebf3f8d41df265e128d78b57da82 (diff) | |
download | gitlab-ce-2ac811ce685f906d3e54e78b23f61495c19ad595.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lefthook.yml')
-rw-r--r-- | lefthook.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lefthook.yml b/lefthook.yml index 54bbdf87e53..e4a960090ed 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -13,6 +13,11 @@ pre-push: 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 @@ -24,3 +29,8 @@ pre-push: 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 |