-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: tris203 <[email protected]>
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# | ||
# This hook is called by 'git push' and can be used to prevent a push from taking place. | ||
# | ||
|
||
# Stylua check | ||
stylua --check lua/ --config-path ./.stylua.toml || exit 1 | ||
echo "Stylua check passed" | ||
|
||
# Luacheck | ||
luacheck lua/ --globals vim || exit 1 | ||
echo "Luacheck passed" | ||
|
||
# Echo success | ||
echo "Pre-push checks passed" | ||
exit 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters