Use PHPStan level 6 (#13308)

This commit is contained in:
Jellyfrog 2021-10-28 14:54:29 +02:00 committed by GitHub
parent 5f8b41d4ba
commit c075194d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12266 additions and 18 deletions

View File

@ -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 }}

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,7 @@ parameters:
scanDirectories:
- includes
level: 5
level: 6
checkMissingIterableValueType: false
treatPhpDocTypesAsCertain: false