Skip to content

Commit

Permalink
Merge pull request #6 from Clearfacts/psalm-only-src
Browse files Browse the repository at this point in the history
[psalm-only-src] only check src folder for psalm during pre commit
  • Loading branch information
ctrl-f5 committed Jun 27, 2023
2 parents 67a722b + 725b0b5 commit 03ab194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/hooks/pre-commit-psalm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
fi

# Grab the staged files
stagedFiles=($(git diff --cached --name-only --diff-filter=AM | grep -e .php$))
stagedFiles=($(git diff --cached --name-only --diff-filter=AM src | grep -e .php$))
files="${stagedFiles[@]}"
if [ "$files" = '' ]
then
Expand Down

0 comments on commit 03ab194

Please sign in to comment.