Skip to content

Commit

Permalink
updated phpstan to 0.12 & moved configuration from cli to file
Browse files Browse the repository at this point in the history
  • Loading branch information
adaamz committed Dec 8, 2019
1 parent 279a616 commit 848011a
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 848011a

Please sign in to comment.