diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 06:17:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-02-18 06:17:36 +0300 |
commit | 20b517258a70b3bd1cb0d17cb77565a82ce098b5 (patch) | |
tree | e38311e4511c23085eccdf91e678365f0947a053 /lefthook.yml | |
parent | 51d1545877fb481aa14498a18b004867f28d7cce (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lefthook.yml')
-rw-r--r-- | lefthook.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lefthook.yml b/lefthook.yml index ce4aa14ea69..f2b02045368 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -42,7 +42,7 @@ pre-push: tags: documentation style files: git diff --name-only --diff-filter=d $(git merge-base origin/master HEAD)..HEAD 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 + run: 'if command -v vale > /dev/null 2>&1; then if ! vale --config .vale.ini --minAlertLevel error {files}; then echo "ERROR: Fix any linting errors and make sure you are using the latest version of Vale."; fi; else echo "ERROR: Vale not found. For more information, see https://docs.errata.ai/vale/install."; fi' gettext: skip: true # This is disabled by default. You can enable this check by adding skip: false in lefhook-local.yml https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md#skipping-commands tags: backend frontend view haml |