Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f92a9b6
Commit
1f92a9b6
authored
Feb 18, 2022
by
Evan Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more guidance when Vale returns an error in Lefthook
parent
6212eb6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lefthook.yml
lefthook.yml
+1
-1
No files found.
lefthook.yml
View file @
1f92a9b6
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment