Skip to content

Commit 5b923c3

Browse files
committed
Improve phpmd configuration
1 parent 6d3ccf2 commit 5b923c3

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

Makefile

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,41 @@ phpcs:
1414
$(COMPOSER_BIN)/phpcs --standard=PSR2 src/ tests/ examples/EchoBot/src examples/EchoBot/public examples/KitchenSink/src examples/KitchenSink/public
1515

1616
phpmd:
17-
$(COMPOSER_BIN)/phpmd ./src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
18-
$(COMPOSER_BIN)/phpmd ./tests text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
19-
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
20-
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/public text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
21-
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/src text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
22-
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/public text cleancode,codesize,controversial,design,unusedcode,naming | grep -v 'Avoid using static access to class'
17+
$(COMPOSER_BIN)/phpmd ./src text cleancode,codesize,controversial,design,unusedcode,naming | \
18+
grep -v 'Avoid using static access to class' | \
19+
grep -v 'Avoid variables with short names like' | \
20+
grep -v 'Avoid excessively long variable names like' | \
21+
grep -v 'The method register uses an else expression' | \
22+
grep -v 'The method sendRequest uses an else expression' | \
23+
cat
24+
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/src text cleancode,codesize,controversial,design,unusedcode,naming | \
25+
grep -v 'Avoid using static access to class' | \
26+
grep -v 'Avoid variables with short names like' | \
27+
grep -v 'Avoid excessively long variable names like' | \
28+
grep -v 'The method register uses an else expression' | \
29+
grep -v 'The method sendRequest uses an else expression' | \
30+
cat
31+
$(COMPOSER_BIN)/phpmd ./examples/EchoBot/public text cleancode,codesize,controversial,design,unusedcode,naming | \
32+
grep -v 'Avoid using static access to class' | \
33+
grep -v 'Avoid variables with short names like' | \
34+
grep -v 'Avoid excessively long variable names like' | \
35+
grep -v 'The method register uses an else expression' | \
36+
grep -v 'The method sendRequest uses an else expression' | \
37+
cat
38+
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/src text cleancode,codesize,controversial,design,unusedcode,naming | \
39+
grep -v 'Avoid using static access to class' | \
40+
grep -v 'Avoid variables with short names like' | \
41+
grep -v 'Avoid excessively long variable names like' | \
42+
grep -v 'The method register uses an else expression' | \
43+
grep -v 'The method sendRequest uses an else expression' | \
44+
cat
45+
$(COMPOSER_BIN)/phpmd ./examples/KitchenSink/public text cleancode,codesize,controversial,design,unusedcode,naming | \
46+
grep -v 'Avoid using static access to class' | \
47+
grep -v 'Avoid variables with short names like' | \
48+
grep -v 'Avoid excessively long variable names like' | \
49+
grep -v 'The method register uses an else expression' | \
50+
grep -v 'The method sendRequest uses an else expression' | \
51+
cat
2352

2453
copyright:
2554
bash ./devtool/check_copyright.sh

0 commit comments

Comments
 (0)