mirror of
https://github.com/elyby/php-code-style.git
synced 2024-11-26 00:38:44 +05:30
Adjust comment_to_phpdoc fixer to exclude PHPStan error supression tags
This commit is contained in:
parent
7c4ed0f859
commit
e6bac9d44b
@ -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).
|
||||
|
||||
## [Unreleased]
|
||||
### Changed
|
||||
- `comment_to_phpdoc` no longer fixes PHPStan error suppression and the `todo` tag.
|
||||
|
||||
## [1.0.0] - 2023-05-17
|
||||
### Added
|
||||
|
@ -83,7 +83,15 @@ final class Rules {
|
||||
'visibility_required' => true,
|
||||
|
||||
// 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,
|
||||
'no_empty_comment' => true,
|
||||
'single_line_comment_spacing' => true,
|
||||
|
Loading…
Reference in New Issue
Block a user