mirror of
https://github.com/sasjs/core.git
synced 2026-01-10 10:50:04 +00:00
chore: devops rules, updated gitignore and git hook
This commit is contained in:
@@ -19,14 +19,14 @@ files=$( git diff --cached --find-copies --find-renames --name-only --diff-filte
|
|||||||
grep -Ei "$mime_pattern" |
|
grep -Ei "$mime_pattern" |
|
||||||
grep -E "$extra_pattern" )
|
grep -E "$extra_pattern" )
|
||||||
echo "$files"
|
echo "$files"
|
||||||
if [ "$files" !="" ];
|
if [[ -n "$files" ]];
|
||||||
then
|
then
|
||||||
echo
|
echo
|
||||||
echo "Found files that contain capital letters."
|
echo "Found files that contain capital letters."
|
||||||
echo "Please rename the following files and commit again:"
|
echo "Please rename the following files in lowercase, and commit again:"
|
||||||
|
|
||||||
for file in $files; do
|
for file in $files; do
|
||||||
echo -e '\E[0;32m'"$file"'\033[0m'
|
echo -e '- \E[0;32m'"$file"'\033[0m'
|
||||||
done
|
done
|
||||||
# Abort commit
|
# Abort commit
|
||||||
exit_code=1
|
exit_code=1
|
||||||
|
|||||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -3,4 +3,7 @@ node_modules
|
|||||||
sasjsbuild/
|
sasjsbuild/
|
||||||
|
|
||||||
# avoid filenames with spaces being committed to source control
|
# avoid filenames with spaces being committed to source control
|
||||||
**\ **
|
**\ **
|
||||||
|
|
||||||
|
# ignore the mc_* files - containing macros for individual libraries
|
||||||
|
mc_*
|
||||||
Reference in New Issue
Block a user