Skip to content
Snippets Groups Projects
Commit b441e6f3 authored by Ludovic Ganée's avatar Ludovic Ganée
Browse files

transfert du asalae_coding_standards.xml vers le coeur

parent 9ebf4160
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0"?>
<ruleset name="Asalae">
<description>Asalae coding standard</description>
<rule ref="PSR2"/>
<rule ref="Generic.Arrays.ArrayIndent"/>
<rule ref="PEAR.Classes"/>
<rule ref="PEAR.Commenting.FunctionComment"/>
<rule ref="PEAR.Commenting.FunctionComment.MissingParamTag">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.MissingParamComment">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.ContentAfterOpen">
<severity>0</severity>
</rule>
<rule ref="PEAR.Commenting.FunctionComment.ContentBeforeClose">
<severity>0</severity>
</rule>
<rule ref="PEAR.ControlStructures"/>
<rule ref="PEAR.Files"/>
<rule ref="PEAR.Formatting"/>
<rule ref="PEAR.Functions"/>
<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="allowMultipleArguments" value="true"/>
</properties>
</rule>
<rule ref="PEAR.NamingConventions"/>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/>
<rule ref="Generic.PHP.LowerCaseConstant"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
<rule ref="Generic.Files.LineEndings">
<properties>
<property name="eolChar" value="\n"/>
</properties>
</rule>
<rule ref="Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma">
<severity>0</severity>
</rule>
<rule ref="Generic.ControlStructures.InlineControlStructure">
<properties>
<property name="error" value="false"/>
</properties>
</rule>
<!-- Autorise les préfixes "_" pour les fonctions et propriétés protected/private (convention cakephp) -->
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<severity>0</severity>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration.Underscore">
<severity>0</severity>
</rule>
</ruleset>
......@@ -77,7 +77,12 @@
"psy/psysh": "^0.8",
"fzaninotto/faker": "^1.7",
"phpunit/phpunit": "^6.0",
"cakephp/bake": "^1.1"
"cakephp/bake": "^1.1",
"squizlabs/php_codesniffer": "^3.4"
},
"scripts": {
"cs-check": "vendor/bin/phpcs --colors -p --standard=asalae_coding_standards.xml ./src ./tests",
"cs-fix": "vendor/bin/phpcbf --colors --standard=asalae_coding_standards.xml ./src ./tests"
},
"autoload": {
"psr-4": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment