Use PHPStan level 6 (#13308)
This commit is contained in:
parent
5f8b41d4ba
commit
c075194d84
|
@ -36,18 +36,6 @@ jobs:
|
|||
-
|
||||
name: Checkout Code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
-
|
||||
name: Determine added files
|
||||
run: |
|
||||
ADDED_FILES=$(git diff --name-only --diff-filter="A" origin/master -- app/ config/ database/ LibreNMS/ resources/ tests/ | tr '\n' ' '|sed 's/,*$//g')
|
||||
echo $ADDED_FILES
|
||||
|
||||
echo 'ADDED_FILES<<EOF' >> $GITHUB_ENV
|
||||
echo $ADDED_FILES >> $GITHUB_ENV
|
||||
echo 'EOF' >> $GITHUB_ENV
|
||||
|
||||
-
|
||||
name: Set up PHP
|
||||
|
@ -88,8 +76,3 @@ jobs:
|
|||
-
|
||||
name: Run PHPStan
|
||||
run: ./vendor/bin/phpstan analyze --no-interaction --no-progress --error-format=github --memory-limit=4G
|
||||
|
||||
-
|
||||
name: Run PHPStan (New files)
|
||||
run: ./vendor/bin/phpstan analyze --no-interaction --no-progress --error-format=github --memory-limit=4G --level=6 -- $ADDED_FILES
|
||||
if: ${{ env.ADDED_FILES }}
|
||||
|
|
12265
phpstan-baseline.neon
12265
phpstan-baseline.neon
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,7 @@ parameters:
|
|||
scanDirectories:
|
||||
- includes
|
||||
|
||||
level: 5
|
||||
level: 6
|
||||
|
||||
checkMissingIterableValueType: false
|
||||
treatPhpDocTypesAsCertain: false
|
||||
|
|
Loading…
Reference in New Issue