File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ echo " 🔍 Running PHPStan..."
5
+ php vendor/bin/phpstan analyse -l 5 src/ tests/ || exit 1
6
+
7
+ echo " 📏 Running PHPMD..."
8
+ php vendor/bin/phpmd src/ text vendor/phplist/core/config/PHPMD/rules.xml || exit 1
9
+
10
+ echo " 🧹 Running PHPCS..."
11
+ php vendor/bin/phpcs --standard=vendor/phplist/core/config/PhpCodeSniffer/ src/ tests/ || exit 1
Original file line number Diff line number Diff line change 4
4
"@babel/preset-env" : " ^7.27.2" ,
5
5
"@symfony/webpack-encore" : " ^5.1.0" ,
6
6
"babel-loader" : " ^10.0.0" ,
7
+ "husky" : " ^9.1.7" ,
7
8
"vue-loader" : " ^17.3.1" ,
8
9
"vue-template-compiler" : " ^2.7.14" ,
9
10
"webpack" : " ^5.99.9" ,
12
13
},
13
14
"dependencies" : {
14
15
"vue" : " 3"
16
+ },
17
+ "scripts" : {
18
+ "prepare" : " husky install"
15
19
}
16
20
}
Original file line number Diff line number Diff line change @@ -1860,6 +1860,11 @@ htmlparser2@^6.1.0:
1860
1860
domutils "^2.5.2"
1861
1861
entities "^2.0.0"
1862
1862
1863
+ husky@^9.1.7 :
1864
+ version "9.1.7"
1865
+ resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d"
1866
+ integrity sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==
1867
+
1863
1868
icss-utils@^5.0.0, icss-utils@^5.1.0 :
1864
1869
version "5.1.0"
1865
1870
resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae"
You can’t perform that action at this time.
0 commit comments