Skip to content

Commit

Permalink
Add ignored tags to phpdoc_to_comment rule
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Nov 2, 2021
1 parent cb1d768 commit 41ce67d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/Ruleset/Nexus73.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ public function __construct()
'phpdoc_summary' => true,
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
'phpdoc_to_comment' => ['ignored_tags' => []],
'phpdoc_to_comment' => ['ignored_tags' => [
'phpstan-var',
'phpstan-return',
]],
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => false, // for PHP 7.4+
'phpdoc_to_return_type' => false,
Expand Down
5 changes: 4 additions & 1 deletion src/Ruleset/Nexus74.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ public function __construct()
'phpdoc_summary' => true,
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
'phpdoc_to_comment' => ['ignored_tags' => []],
'phpdoc_to_comment' => ['ignored_tags' => [
'phpstan-var',
'phpstan-return',
]],
'phpdoc_to_param_type' => false,
'phpdoc_to_property_type' => ['scalar_types' => true],
'phpdoc_to_return_type' => false,
Expand Down
5 changes: 4 additions & 1 deletion src/Ruleset/Nexus80.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ public function __construct()
'phpdoc_summary' => true,
'phpdoc_tag_casing' => ['tags' => ['inheritDoc']],
'phpdoc_tag_type' => ['tags' => ['inheritDoc' => 'inline']],
'phpdoc_to_comment' => ['ignored_tags' => []],
'phpdoc_to_comment' => ['ignored_tags' => [
'phpstan-var',
'phpstan-return',
]],
'phpdoc_to_param_type' => ['scalar_types' => true],
'phpdoc_to_property_type' => ['scalar_types' => true],
'phpdoc_to_return_type' => ['scalar_types' => true],
Expand Down

0 comments on commit 41ce67d

Please sign in to comment.