Adjust comment_to_phpdoc fixer to exclude PHPStan error supression tags

This commit is contained in:
ErickSkrauch 2023-07-21 05:37:25 +02:00
parent 7c4ed0f859
commit e6bac9d44b
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E
2 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased] ## [Unreleased]
### Changed
- `comment_to_phpdoc` no longer fixes PHPStan error suppression and the `todo` tag.
## [1.0.0] - 2023-05-17 ## [1.0.0] - 2023-05-17
### Added ### Added

View File

@ -83,7 +83,15 @@ final class Rules {
'visibility_required' => true, 'visibility_required' => true,
// Comment // Comment
'comment_to_phpdoc' => true, 'comment_to_phpdoc' => [
'ignored_tags' => [
'todo',
// https://phpstan.org/user-guide/ignoring-errors
'phpstan-ignore',
'phpstan-ignore-line',
'phpstan-ignore-next-line',
],
],
'multiline_comment_opening_closing' => true, 'multiline_comment_opening_closing' => true,
'no_empty_comment' => true, 'no_empty_comment' => true,
'single_line_comment_spacing' => true, 'single_line_comment_spacing' => true,