Browse Source

CICD: update checkbashisms

Dariusz Ruminski 4 years ago
parent
commit
14b6f826c4
2 changed files with 7 additions and 2 deletions
  1. 4 2
      dev-tools/install.sh
  2. 3 0
      phpstan.neon

+ 4 - 2
dev-tools/install.sh

@@ -20,12 +20,14 @@ cd "$(dirname "$0")"
 
 mkdir -p bin
 
-VERSION_CB="2.0.0.2"
+VERSION_CB="2.20.4"
 VERSION_SC="stable"
 
 echo λλλ checkbashisms
 if [ ! -x bin/checkbashisms ]; then
-    wget -Obin/checkbashisms https://sourceforge.net/projects/checkbaskisms/files/${VERSION_CB}/checkbashisms/download
+    wget -qO- "https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_${VERSION_CB}.tar.xz" \
+        | tar -xJv -O devscripts-${VERSION_CB}/scripts/checkbashisms.pl \
+        > bin/checkbashisms
     chmod u+x bin/checkbashisms
 fi
 bin/checkbashisms --version

+ 3 - 0
phpstan.neon

@@ -47,4 +47,7 @@ parameters:
         -
             message: '/^Parameter #1 \$finder of method PhpCsFixer\\Config::setFinder\(\) expects iterable<string>, int given\.$/'
             path: tests/ConfigTest.php
+        -
+            message: '/^Unreachable statement - code above always terminates\.$/'
+            path: tests/AutoReview/DocumentationTest.php
     tipsOfTheDay: false