Skip to content

Commit

Permalink
Merge branch 'phpstan-0.12' of https://github.com/adaamz/PHP_CodeSniffer
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Dec 9, 2019
2 parents d3d7c41 + 848011a commit 120c713
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ script:
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Squiz/ruleset.xml <(xmllint --format "./src/Standards/Squiz/ruleset.xml"); fi
- if [[ $XMLLINT == "1" ]]; then diff -B ./src/Standards/Zend/ruleset.xml <(xmllint --format "./src/Standards/Zend/ruleset.xml"); fi
# Run PHPStan
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse src --level=0 --configuration=phpstan.neon --autoload-file=tests/bootstrap.php; fi
- if [[ $PHPSTAN == "1" ]]; then composer require --dev phpstan/phpstan && php vendor/bin/phpstan analyse --configuration=phpstan.neon; fi
9 changes: 6 additions & 3 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
level: 0
paths:
- src
autoload_files:
- tests/bootstrap.php
ignoreErrors:
-
count: 1
message: '~^Undefined variable: \$phpCodeSnifferConfig$~'
path: %currentWorkingDirectory%/src/Config.php

dynamicConstantNames:
- PHP_CODESNIFFER_IN_TESTS
- PHP_CODESNIFFER_CBF
- PHP_CODESNIFFER_VERBOSITY

excludes_analyse:
- */Tests/*

0 comments on commit 120c713

Please sign in to comment.