Skip to content

Commit

Permalink
Qual: Rename distribution phpstan.neon to phpstan.neon.dist
Browse files Browse the repository at this point in the history
# Qual: Rename distribution phpstan.neon to phpstan.neon.dist

This allows the developer to override some settings locally

Also update the .gitignore file with phpstan.neon and some other other
ignores (cache, local log files, temporary edit files).
  • Loading branch information
mdeweerd committed Mar 10, 2024
1 parent b9b34ae commit d41e9b7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
id: phpstan
run: |
php -i | grep max_execution_time
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a build/phpstan/bootstrap_action.php -c phpstan.neon | tee _stan.xml | cs2pr --graceful-warnings
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a build/phpstan/bootstrap_action.php -c phpstan.neon.dist | tee _stan.xml | cs2pr --graceful-warnings
# continue-on-error: true

# Save cache
Expand Down
18 changes: 16 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,26 @@ doc/install.lock
/composer.json
/composer.lock

# to execute pre-commit
local.sh
# Local script, executed during pre-commit
/local.sh

# Local phpstan configuration
/phpstan.neon
/phpstan-baseline.neon

# Logs
/*.log

# Vim swap files
*.sw?

# Generated by PHPUNIT.BAT
/INI_PHPUNIT

# ignore cache builds
/build/phpstan/phpstan
/build/phpstan/bootstrap_custom.php
phpstan_custom.neon
/.php-cs-fixer.cache
/.php_cs.cache
/.cache
File renamed without changes.

0 comments on commit d41e9b7

Please sign in to comment.