Skip to content

Commit 557350b

Browse files
author
Michael Nozdrevatykh
committed
QA-fixes
1 parent 0eade67 commit 557350b

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

ruleset.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
<rule ref="./custom-standards/Flyeralarm/Sniffs/Docblock/ExpectedExceptionMessageSniff.php"/>
1515
<rule ref="./custom-standards/Flyeralarm/Sniffs/Variable/LowerCamelCaseSniff.php"/>
1616
<rule ref="./custom-standards/Flyeralarm/Sniffs/ControlStructures/YodaSniff.php"/>
17-
<rule ref="./custom-standards/Flyeralarm/Sniffs/Classes/FullyQualifiedSniff.php"/>
1817
</ruleset>

tests/ruleset.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="FLYERALARM Coding Guidelines">
3+
<description>A custom coding standard for FLYERALARM</description>
4+
<rule ref="PSR2"/>
5+
<rule ref="Generic.Formatting.SpaceAfterCast"/>
6+
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
7+
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
8+
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
9+
<rule ref="./custom-standards/Flyeralarm/Sniffs/File/ExceptionMessageSniff.php"/>
10+
<rule ref="./custom-standards/Flyeralarm/Sniffs/File/ForbiddenKeywordsSniff.php"/>
11+
<rule ref="./custom-standards/Flyeralarm/Sniffs/File/NamespacesSniff.php"/>
12+
<rule ref="./custom-standards/Flyeralarm/Sniffs/File/NoClassKindSuffixSniff.php"/>
13+
<rule ref="./custom-standards/Flyeralarm/Sniffs/Docblock/ReturnTypeSniff.php"/>
14+
<rule ref="./custom-standards/Flyeralarm/Sniffs/Docblock/ExpectedExceptionMessageSniff.php"/>
15+
<rule ref="./custom-standards/Flyeralarm/Sniffs/Variable/LowerCamelCaseSniff.php"/>
16+
<rule ref="./custom-standards/Flyeralarm/Sniffs/ControlStructures/YodaSniff.php"/>
17+
<rule ref="./custom-standards/Flyeralarm/Sniffs/Classes/FullyQualifiedSniff.php"/>
18+
</ruleset>

tests/runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function processDir($dirPath)
2525
sprintf(
2626
"%s -w -p -s --standard=%s %s",
2727
escapeshellcmd(__DIR__ . '/../vendor/bin/phpcs'),
28-
escapeshellarg(__DIR__ . '/../ruleset.xml'),
28+
escapeshellarg(__DIR__ . '/ruleset.xml'),
2929
escapeshellarg($dirPath . $file)
3030
)
3131
);

0 commit comments

Comments
 (0)