Skip to content

Commit

Permalink
Renamed phpstan.neon to phpstan.dist.neon (#100)
Browse files Browse the repository at this point in the history
* Renamed phpstan.neon to phpstan.dist.neon

To better fit the best practices (https://phpstan.org/config-reference#config-file):
> The usual practice is to have phpstan.neon.dist or phpstan.dist.neon under version control, and allow the user to override certain settings in their environment (on their own computer or on a continuous integration server) by creating phpstan.neon that’s present in .gitignore

* Fixed entry in .gitignore
  • Loading branch information
SergeyKleyman authored Oct 1, 2024
1 parent f9e9445 commit c51a504
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ build/*
# For local development
z_local*

# Per user PHPStan configuration
phpstan.neon

# Prerequisites
*.d

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
"phpcbf ./tests/"
],
"phpstan-junit-report-for-ci": [
"phpstan analyse --error-format=junit -c ./phpstan.neon ./prod/php/ --level max --memory-limit=1G | tee build/elastic-otel-phpstan-junit.xml",
"phpstan analyse --error-format=junit -c ./phpstan.neon ./tests/ --level max --memory-limit=1G --error-format=junit | tee build/tests-phpstan-junit.xml"
"phpstan analyse --error-format=junit ./prod/php/ --level max --memory-limit=1G | tee build/elastic-otel-phpstan-junit.xml",
"phpstan analyse --error-format=junit ./tests/ --level max --memory-limit=1G --error-format=junit | tee build/tests-phpstan-junit.xml"
],
"phpstan": [
"phpstan analyse -c ./phpstan.neon ./prod/php/ --level max --memory-limit=1G",
"phpstan analyse -c ./phpstan.neon ./tests/ --level max --memory-limit=1G"
"phpstan analyse ./prod/php/ --level max --memory-limit=1G",
"phpstan analyse ./tests/ --level max --memory-limit=1G"
],
"static_check": [
"composer run-script -- parallel-lint",
Expand Down
File renamed without changes.

0 comments on commit c51a504

Please sign in to comment.