File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 111
111
112
112
<!-- PSR-2 sniffs -->
113
113
<rule ref =" PSR2.Classes.PropertyDeclaration" >
114
- <!-- Already covered by Drupal.Classes.PropertyDeclaration.VarUsed. -->
114
+ <!-- Already covered by Drupal.Classes.PropertyDeclaration.VarUsed. -->
115
115
<exclude name =" PSR2.Classes.PropertyDeclaration.VarUsed" />
116
116
</rule >
117
117
<rule ref =" PSR2.Namespaces.NamespaceDeclaration" />
120
120
<!-- SlevomatCodingStandard sniffs -->
121
121
<rule ref =" SlevomatCodingStandard.Classes.BackedEnumTypeSpacing" />
122
122
<rule ref =" SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator" />
123
+ <!-- Allow global names with backslash like \Drupal. -->
124
+ <rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" >
125
+ <properties >
126
+ <property name =" allowFullyQualifiedGlobalClasses" value =" true" />
127
+ <property name =" allowFullyQualifiedGlobalFunctions" value =" true" />
128
+ <property name =" allowFullyQualifiedGlobalConstants" value =" true" />
129
+ <property name =" allowFallbackGlobalFunctions" value =" true" />
130
+ <property name =" allowFallbackGlobalConstants" value =" true" />
131
+ </properties >
132
+ </rule >
133
+ <rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName" >
134
+ <exclude-pattern >*.api.php</exclude-pattern >
135
+ </rule >
136
+ <rule ref =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedNameWithoutNamespace" >
137
+ <severity >0</severity >
138
+ </rule >
123
139
<rule ref =" SlevomatCodingStandard.PHP.ShortList" />
124
140
<rule ref =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes" >
125
141
<exclude name =" SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing" />
Original file line number Diff line number Diff line change 18
18
"ext-mbstring" : " *" ,
19
19
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.1 || ^1.0.0" ,
20
20
"sirbrillig/phpcs-variable-analysis" : " ^2.11.7" ,
21
- "slevomat/coding-standard" : " ^8.11 " ,
21
+ "slevomat/coding-standard" : " ^8.15 " ,
22
22
"squizlabs/php_codesniffer" : " ^3.11.2" ,
23
23
"symfony/yaml" : " >=3.4.0"
24
24
},
You can’t perform that action at this time.
0 commit comments