Skip to content

Commit

Permalink
Merge pull request #482 from ergebnis/fix/constant
Browse files Browse the repository at this point in the history
Fix: Extract constant
  • Loading branch information
localheinz authored Aug 30, 2021
2 parents 15de43b + b3f4b34 commit ab3c4e6
Show file tree
Hide file tree
Showing 8 changed files with 224 additions and 2,184 deletions.
100 changes: 100 additions & 0 deletions src/RuleSet/AbstractRuleSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,106 @@
*/
abstract class AbstractRuleSet implements RuleSet
{
/**
* A list of tags that should be ignored by fixers related to Doctrine.
*
* @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_array_assignment.rst
* @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_braces.rst
* @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_indentation.rst
* @see https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/v3.1.0/doc/rules/doctrine_annotation/doctrine_annotation_spaces.rst
*/
protected const DOCTRINE_IGNORED_TAGS = [
'abstract',
'access',
'after',
'afterClass',
'api',
'author',
'backupGlobals',
'backupStaticAttributes',
'before',
'beforeClass',
'category',
'code',
'codeCoverageIgnore',
'codeCoverageIgnoreEnd',
'codeCoverageIgnoreStart',
'copyright',
'covers',
'coversDefaultClass',
'coversNothing',
'dataProvider',
'depends',
'deprec',
'deprecated',
'encode',
'enduml',
'example',
'exception',
'expectedException',
'expectedExceptionCode',
'expectedExceptionMessage',
'expectedExceptionMessageRegExp',
'filesource',
'final',
'fix',
'FIXME',
'fixme',
'global',
'group',
'ignore',
'ingroup',
'inheritdoc',
'inheritDoc',
'internal',
'large',
'license',
'link',
'magic',
'medium',
'method',
'name',
'noinspection',
'override',
'package',
'package_version',
'param',
'preserveGlobalState',
'private',
'property',
'property-read',
'property-write',
'requires',
'return',
'runInSeparateProcess',
'runTestsInSeparateProcesses',
'see',
'since',
'small',
'source',
'startuml',
'static',
'staticvar',
'staticVar',
'subpackage',
'SuppressWarnings',
'template',
'test',
'testdox',
'throw',
'throws',
'ticket',
'toc',
'todo',
'TODO',
'tutorial',
'usedBy',
'uses',
'uses',
'var',
'version',
];

/**
* @var string
*/
Expand Down
Loading

0 comments on commit ab3c4e6

Please sign in to comment.