Skip to content

Commit

Permalink
default for perlcritic
Browse files Browse the repository at this point in the history
  • Loading branch information
dipietroR authored and alexgarel committed Jul 19, 2022
1 parent 293135b commit 540ba4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ lint_perltidy:


#Checking with Perl::Critic
TO_CRITIC_CHECK=$(shell git diff main --name-only | grep '.*\.\(pl\|pm\|t\)$$')
# adding an echo of search.pl in case no files are edited
TO_CRITIC_CHECK=$(shell git fetch origin main ; git diff remotes/origin/main --name-only | grep '.*\.\(pl\|pm\|t\)$$' || echo './cgi/search.pl')
check_critic:
@echo "🥫 Checking with perlcritic"
${DOCKER_COMPOSE} run --rm --no-deps backend perlcritic ${TO_CRITIC_CHECK}
Expand Down

0 comments on commit 540ba4f

Please sign in to comment.