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

Add @author to forbidden tag list #382

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class ClassAndInterfacePHPDocFormattingSniff implements Sniff
* @var string[] List of tags that can not be used in comments
*/
public $forbiddenTags = [
'@author',
'@category',
'@package',
'@subpackage'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ class EmptyHandler
* @api is ok here
* @deprecated can be used in this context
* @see is ok here
* @author is actually ok
* @author should not be used
* @category is irrelevant
* @package is not ment to be used
* @package should not be used
* @subpackage does not belong here
*/
class ExampleHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ interface EmptyHandler
* @api is ok here
* @deprecated can be used in this context
* @see is ok here
* @author is actually ok
* @author should not be used
* @category is irrelevant
* @package is not ment to be used
* @package should not be used
* @subpackage does not belong here
*/
interface ExampleHandler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function getWarningList($testFile = '')
35 => 1,
44 => 1,
52 => 1,
63 => 1,
64 => 1,
65 => 1,
66 => 1,
Expand Down