-
Notifications
You must be signed in to change notification settings - Fork 41
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
Baseline feature #62
Comments
I'm doing this with a pre-commit hook that extracts the changed files in the commit and modifies the phpat.yaml include option so the tests only include this files (this config is taken in the StatementBuilder). Anyway the way I do it is a bit clunky, it would be a nice extra feature to implement. |
I might work on such a feature when phpat gehts relevant for our projects. atm. we need to setup other QA things first. |
You might have a look at https://github.com/DaveLiddament/sarb :-) |
Released with https://github.com/carlosas/phpat/releases/tag/0.8.0 🙂 |
Similar to psalm and phpstan it would be helpfull to integrate the tool in already existing code bases by providing a baseline feature.
A baseline allows you to define all rules and make sure all newly written code will obey these rules, without the need to fix the whole codebase for violations
See details in
https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff
https://psalm.dev/docs/running_psalm/dealing_with_code_issues/#using-a-baseline-file
The text was updated successfully, but these errors were encountered: