upd
This commit is contained in:
@@ -31,7 +31,7 @@ Optional: To install coding standard automatically edit your composer script:
|
|||||||
"@auto-scripts"
|
"@auto-scripts"
|
||||||
],
|
],
|
||||||
"auto-scripts": {
|
"auto-scripts": {
|
||||||
"phpcs --config-set installed_paths vendor/1sept/sept-coding-standard": "script",
|
"phpcs --config-set installed_paths vendor/1sept/sept-coding-standard/SeptCodingStandard/": "script",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -43,7 +43,7 @@ Just create a `phpcs.xml.dist` in your project's root directory with the followi
|
|||||||
```xml
|
```xml
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<ruleset name="sept-coding-standard">
|
<ruleset name="sept-coding-standard">
|
||||||
<rule ref="vendor/1sept/sept-coding-standard/ruleset.xml">
|
<rule ref="vendor/1sept/sept-coding-standard/SeptCodingStandard/ruleset.xml">
|
||||||
<!-- If the standard is too hard, you can exclude some rules like this: -->
|
<!-- If the standard is too hard, you can exclude some rules like this: -->
|
||||||
<!-- <exclude name="Generic.Arrays.DisallowLongArraySyntax.Found" /> -->
|
<!-- <exclude name="Generic.Arrays.DisallowLongArraySyntax.Found" /> -->
|
||||||
<!-- <exclude name="Generic.Files.LineLength.TooLong" /> -->
|
<!-- <exclude name="Generic.Files.LineLength.TooLong" /> -->
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<ruleset name="SeptCodingStandard">
|
||||||
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
|
||||||
|
|
||||||
<arg name="basepath" value="."/>
|
|
||||||
<arg name="cache" value=".phpcs-cache"/>
|
|
||||||
<arg name="colors"/>
|
|
||||||
<arg name="extensions" value="php"/>
|
|
||||||
|
|
||||||
<rule ref="PSR12">
|
<rule ref="PSR12">
|
||||||
<exclude name="Generic.Files.LineLength"/>
|
<exclude name="Generic.Files.LineLength"/>
|
||||||
@@ -184,11 +178,6 @@
|
|||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<file>src/</file>
|
|
||||||
<file>tests/</file>
|
|
||||||
<file>config/</file>
|
|
||||||
<file>public/</file>
|
|
||||||
|
|
||||||
<exclude-pattern>./src/Migrations/*</exclude-pattern>
|
<exclude-pattern>./src/Migrations/*</exclude-pattern>
|
||||||
<exclude-pattern>./src/Kernel.php</exclude-pattern>
|
<exclude-pattern>./src/Kernel.php</exclude-pattern>
|
||||||
<exclude-pattern>./public/index.php</exclude-pattern>
|
<exclude-pattern>./public/index.php</exclude-pattern>
|
||||||
@@ -200,6 +189,12 @@
|
|||||||
<exclude-pattern>./tests/symfony-container.php</exclude-pattern>
|
<exclude-pattern>./tests/symfony-container.php</exclude-pattern>
|
||||||
<exclude-pattern>./tests/bootstrap.php</exclude-pattern>
|
<exclude-pattern>./tests/bootstrap.php</exclude-pattern>
|
||||||
|
|
||||||
|
<file>bin/</file>
|
||||||
|
<file>config/</file>
|
||||||
|
<file>public/</file>
|
||||||
|
<file>src/</file>
|
||||||
|
<file>tests/</file>
|
||||||
|
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
||||||
<!-- composer require "squizlabs/php_codesniffer=*" dev -->
|
<!-- composer require "squizlabs/php_codesniffer=*" dev -->
|
||||||
Reference in New Issue
Block a user