Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54305c4
commit 31acaff
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,39 @@ | |||
<?xml version="1.0"?> | |||
<ruleset name="Pico"> | |||
<description> | |||
Pico's coding standards mainly base on the PHP-FIG PSR-2 standard, | |||
but without the MissingNamespace sniff. | |||
</description> | |||
|
|||
<!-- | |||
Exclude build/ and vendor/ dirs as well as minified JavaScript files | |||
--> | |||
<exclude-pattern type="relative">^build/</exclude-pattern> | |||
<exclude-pattern type="relative">^vendor/</exclude-pattern> | |||
<exclude-pattern>*.min.js</exclude-pattern> | |||
|
|||
<!-- | |||
Check files for PHP syntax errors | |||
--> | |||
<config name="php_path" value="php"/> | |||
<rule ref="Generic.PHP.Syntax"/> | |||
|
|||
<!-- | |||
Never use deprecated functions, | |||
as they will be removed in future PHP releases | |||
--> | |||
<rule ref="Generic.PHP.DeprecatedFunctions"/> | |||
|
|||
<!-- | |||
Warn about structures which affect performance negatively | |||
--> | |||
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> | |||
|
|||
<!-- | |||
Pico follows PHP-FIG PSR-2 Coding Style, | |||
but doesn't use formal namespaces for historic reasons | |||
--> | |||
<rule ref="PSR2"> | |||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace"/> | |||
</rule> | |||
</ruleset> |