Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Psalm (static analysis tool) integration instead of phpstan #48

Open
7 tasks
elie29 opened this issue Mar 25, 2021 · 0 comments
Open
7 tasks

Psalm (static analysis tool) integration instead of phpstan #48

elie29 opened this issue Mar 25, 2021 · 0 comments
Labels
easy-pick enhancement New feature or request good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed

Comments

@elie29
Copy link
Owner

elie29 commented Mar 25, 2021

Implementing psalm is quite easy.

Required

  • Create a psalm.xml in the project root
  • Adapt the contents from this psalm.xml.dist
  • Run $ composer require --dev vimeo/psalm
  • Run $ vendor/bin/psalm --set-baseline=psalm-baseline.xml
  • Add a composer script static-analysis with the command psalm --shepherd --stats
  • Add a new line to script: in .travis.yml: - if [[ $TEST_COVERAGE == 'true' ]]; then composer static-analysis ; fi
  • Remove phpstan from the project (phpstan.neon.dist, .travis.yml entry, composer.json require-dev and scripts)

Optional
Report in description errors as checklist and fix them

@elie29 elie29 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers easy-pick hacktoberfest-accepted labels Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy-pick enhancement New feature or request good first issue Good for newcomers hacktoberfest-accepted help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant