|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Doctrine\Common\Annotations; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* A list of annotations that are implicitly ignored during the parsing process. |
|
9
|
|
|
* |
|
10
|
|
|
* All names are case sensitive. |
|
11
|
|
|
*/ |
|
12
|
|
|
final class ImplicitlyIgnoredAnnotationNames |
|
13
|
|
|
{ |
|
14
|
|
|
private const Reserved = [ |
|
15
|
|
|
'Annotation' => true, |
|
16
|
|
|
'Attribute' => true, |
|
17
|
|
|
'Attributes' => true, |
|
18
|
|
|
/* Can we enable this? 'Enum' => true, */ |
|
19
|
|
|
'Required' => true, |
|
20
|
|
|
'Target' => true, |
|
21
|
|
|
]; |
|
22
|
|
|
|
|
23
|
|
|
private const WidelyUsedNonStandard = [ |
|
24
|
|
|
'fix' => true, |
|
25
|
|
|
'fixme' => true, |
|
26
|
|
|
'override' => true, |
|
27
|
|
|
]; |
|
28
|
|
|
|
|
29
|
|
|
private const PhpDocumentor1 = [ |
|
30
|
|
|
'abstract' => true, |
|
31
|
|
|
'access' => true, |
|
32
|
|
|
'code' => true, |
|
33
|
|
|
'deprec' => true, |
|
34
|
|
|
'endcode' => true, |
|
35
|
|
|
'exception' => true, |
|
36
|
|
|
'final' => true, |
|
37
|
|
|
'ingroup' => true, |
|
38
|
|
|
'inheritdoc' => true, |
|
39
|
|
|
'inheritDoc' => true, |
|
40
|
|
|
'magic' => true, |
|
41
|
|
|
'name' => true, |
|
42
|
|
|
'private' => true, |
|
43
|
|
|
'static' => true, |
|
44
|
|
|
'staticvar' => true, |
|
45
|
|
|
'staticVar' => true, |
|
46
|
|
|
'toc' => true, |
|
47
|
|
|
'tutorial' => true, |
|
48
|
|
|
'throw' => true, |
|
49
|
|
|
]; |
|
50
|
|
|
|
|
51
|
|
|
private const PhpDocumentor2 = [ |
|
52
|
|
|
'api' => true, |
|
53
|
|
|
'author' => true, |
|
54
|
|
|
'category' => true, |
|
55
|
|
|
'copyright' => true, |
|
56
|
|
|
'deprecated' => true, |
|
57
|
|
|
'example' => true, |
|
58
|
|
|
'filesource' => true, |
|
59
|
|
|
'global' => true, |
|
60
|
|
|
'ignore' => true, |
|
61
|
|
|
/* Can we enable this? 'index' => true, */ |
|
62
|
|
|
'internal' => true, |
|
63
|
|
|
'license' => true, |
|
64
|
|
|
'link' => true, |
|
65
|
|
|
'method' => true, |
|
66
|
|
|
'package' => true, |
|
67
|
|
|
'param' => true, |
|
68
|
|
|
'property' => true, |
|
69
|
|
|
'property-read' => true, |
|
70
|
|
|
'property-write' => true, |
|
71
|
|
|
'return' => true, |
|
72
|
|
|
'see' => true, |
|
73
|
|
|
'since' => true, |
|
74
|
|
|
'source' => true, |
|
75
|
|
|
'subpackage' => true, |
|
76
|
|
|
'throws' => true, |
|
77
|
|
|
'todo' => true, |
|
78
|
|
|
'TODO' => true, |
|
79
|
|
|
'usedby' => true, |
|
80
|
|
|
'uses' => true, |
|
81
|
|
|
'var' => true, |
|
82
|
|
|
'version' => true, |
|
83
|
|
|
]; |
|
84
|
|
|
|
|
85
|
|
|
private const PHPUnit = [ |
|
86
|
|
|
'author' => true, |
|
87
|
|
|
'after' => true, |
|
88
|
|
|
'afterClass' => true, |
|
89
|
|
|
'backupGlobals' => true, |
|
90
|
|
|
'backupStaticAttributes' => true, |
|
91
|
|
|
'before' => true, |
|
92
|
|
|
'beforeClass' => true, |
|
93
|
|
|
'codeCoverageIgnore' => true, |
|
94
|
|
|
'codeCoverageIgnoreStart' => true, |
|
95
|
|
|
'codeCoverageIgnoreEnd' => true, |
|
96
|
|
|
'covers' => true, |
|
97
|
|
|
'coversDefaultClass' => true, |
|
98
|
|
|
'coversNothing' => true, |
|
99
|
|
|
'dataProvider' => true, |
|
100
|
|
|
'depends' => true, |
|
101
|
|
|
'doesNotPerformAssertions' => true, |
|
102
|
|
|
'expectedException' => true, |
|
103
|
|
|
'expectedExceptionCode' => true, |
|
104
|
|
|
'expectedExceptionMessage' => true, |
|
105
|
|
|
'expectedExceptionMessageRegExp' => true, |
|
106
|
|
|
'group' => true, |
|
107
|
|
|
'large' => true, |
|
108
|
|
|
'medium' => true, |
|
109
|
|
|
'preserveGlobalState' => true, |
|
110
|
|
|
'requires' => true, |
|
111
|
|
|
'runTestsInSeparateProcesses' => true, |
|
112
|
|
|
'runInSeparateProcess' => true, |
|
113
|
|
|
'small' => true, |
|
114
|
|
|
'test' => true, |
|
115
|
|
|
'testdox' => true, |
|
116
|
|
|
'testWith' => true, |
|
117
|
|
|
'ticket' => true, |
|
118
|
|
|
'uses' => true, |
|
119
|
|
|
]; |
|
120
|
|
|
|
|
121
|
|
|
private const PhpCheckStyle = [ |
|
122
|
|
|
'SuppressWarnings' => true, |
|
123
|
|
|
]; |
|
124
|
|
|
|
|
125
|
|
|
private const PhpStorm = [ |
|
126
|
|
|
'noinspection' => true, |
|
127
|
|
|
]; |
|
128
|
|
|
|
|
129
|
|
|
private const PEAR = [ |
|
130
|
|
|
'package_version' => true, |
|
131
|
|
|
]; |
|
132
|
|
|
|
|
133
|
|
|
private const PlainUML = [ |
|
134
|
|
|
'startuml' => true, |
|
135
|
|
|
'enduml' => true, |
|
136
|
|
|
]; |
|
137
|
|
|
|
|
138
|
|
|
private const Symfony = [ |
|
139
|
|
|
'experimental' => true, |
|
140
|
|
|
]; |
|
141
|
|
|
|
|
142
|
|
|
private const PhpCodeSniffer = [ |
|
143
|
|
|
'codingStandardsIgnoreStart' => true, |
|
144
|
|
|
'codingStandardsIgnoreEnd' => true, |
|
145
|
|
|
]; |
|
146
|
|
|
|
|
147
|
|
|
private const SlevomatCodingStandard = [ |
|
148
|
|
|
'phpcsSuppress' => true, |
|
149
|
|
|
]; |
|
150
|
|
|
|
|
151
|
|
|
private const PhpStan = [ |
|
152
|
|
|
'extends' => true, |
|
153
|
|
|
'implements' => true, |
|
154
|
|
|
'template' => true, |
|
155
|
|
|
'use' => true, |
|
156
|
|
|
]; |
|
157
|
|
|
|
|
158
|
|
|
public const LIST = self::Reserved |
|
159
|
|
|
+ self::WidelyUsedNonStandard |
|
160
|
|
|
+ self::PhpDocumentor1 |
|
161
|
|
|
+ self::PhpDocumentor2 |
|
162
|
|
|
+ self::PHPUnit |
|
163
|
|
|
+ self::PhpCheckStyle |
|
164
|
|
|
+ self::PhpStorm |
|
165
|
|
|
+ self::PEAR |
|
166
|
|
|
+ self::PlainUML |
|
167
|
|
|
+ self::Symfony |
|
168
|
|
|
+ self::SlevomatCodingStandard |
|
169
|
|
|
+ self::PhpCodeSniffer |
|
170
|
|
|
+ self::PhpStan; |
|
171
|
|
|
|
|
172
|
|
|
private function __construct() |
|
173
|
|
|
{ |
|
174
|
|
|
} |
|
175
|
|
|
} |
|
176
|
|
|
|