File tree 4 files changed +11
-16
lines changed
4 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 71
71
<rule ref =" PSR12.Namespaces.CompoundNamespaceDepth" />
72
72
<rule ref =" PSR12.Operators.OperatorSpacing" />
73
73
<rule ref =" PSR12.Functions.NullableTypeDeclaration" />
74
+ <rule ref =" PSR12.Functions.ReturnTypeDeclaration" />
74
75
75
76
<rule ref =" Squiz.Functions.LowercaseFunctionKeywords" />
76
77
<rule ref =" Squiz.WhiteSpace.ScopeKeywordSpacing" />
Original file line number Diff line number Diff line change 13
13
],
14
14
"require" : {
15
15
"php" : " >=5.6" ,
16
- "squizlabs/php_codesniffer" : " ^3.4.2 "
16
+ "squizlabs/php_codesniffer" : " ^3.5.0 "
17
17
},
18
18
"require-dev" : {
19
19
},
Original file line number Diff line number Diff line change 1
1
# PSR2R Code Sniffer
2
2
3
3
4
- The PSR2R standard contains 124 sniffs
4
+ The PSR2R standard contains 126 sniffs
5
5
6
- Generic (20 sniffs)
6
+ Generic (21 sniffs)
7
7
-------------------
8
8
- Generic.Arrays.DisallowLongArraySyntax
9
9
- Generic.CodeAnalysis.ForLoopShouldBeWhileLoop
@@ -18,6 +18,7 @@ Generic (20 sniffs)
18
18
- Generic.Formatting.NoSpaceAfterCast
19
19
- Generic.NamingConventions.UpperCaseConstantName
20
20
- Generic.PHP.DeprecatedFunctions
21
+ - Generic.PHP.DisallowAlternativePHPTags
21
22
- Generic.PHP.DisallowShortOpenTag
22
23
- Generic.PHP.ForbiddenFunctions
23
24
- Generic.PHP.LowerCaseConstant
@@ -38,10 +39,11 @@ PSR1 (3 sniffs)
38
39
- PSR1.Files.SideEffects
39
40
- PSR1.Methods.CamelCapsMethodName
40
41
41
- PSR12 (5 sniffs)
42
+ PSR12 (6 sniffs)
42
43
----------------
43
44
- PSR12.Classes.ClassInstantiation
44
45
- PSR12.Functions.NullableTypeDeclaration
46
+ - PSR12.Functions.ReturnTypeDeclaration
45
47
- PSR12.Keywords.ShortFormTypeKeywords
46
48
- PSR12.Namespaces.CompoundNamespaceDepth
47
49
- PSR12.Operators.OperatorSpacing
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit
3
- colors=" true"
4
- processIsolation=" false"
5
- stopOnFailure=" false"
6
- bootstrap=" ./tests/bootstrap.php"
7
- >
2
+ <phpunit bootstrap =" tests/bootstrap.php" >
8
3
<php >
9
4
<ini name =" memory_limit" value =" -1" />
10
5
<ini name =" apc.enable_cli" value =" 1" />
11
6
</php >
12
7
13
8
<!-- Add any additional test suites you want to run here -->
14
9
<testsuites >
15
- <testsuite name =" Sniffer Test Suite " >
16
- <directory >./ tests/Sniffs</directory >
10
+ <testsuite name =" psr2r " >
11
+ <directory >tests/Sniffs/ </directory >
17
12
</testsuite >
18
13
<testsuite name =" Extension of PHP_CodeSniffer Test Suite" >
19
14
<file >tests/AllTests.php</file >
23
18
24
19
<filter >
25
20
<whitelist processUncoveredFilesFromWhitelist =" true" >
26
- <directory >./ PSR2R</directory >
21
+ <directory >PSR2R/ </directory >
27
22
</whitelist >
28
- <blacklist >
29
- <directory >./vendor</directory >
30
- </blacklist >
31
23
</filter >
32
24
33
25
</phpunit >
You can’t perform that action at this time.
0 commit comments