This commit is contained in:
2025-07-22 20:29:36 +03:00
parent dbfe19daea
commit 995b577062
2 changed files with 9 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ Optional: To install coding standard automatically edit your composer script:
"@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 version="1.0" encoding="UTF-8"?>
<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: -->
<!-- <exclude name="Generic.Arrays.DisallowLongArraySyntax.Found" /> -->
<!-- <exclude name="Generic.Files.LineLength.TooLong" /> -->

View File

@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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"/>
<ruleset name="SeptCodingStandard">
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength"/>
@@ -184,11 +178,6 @@
</properties>
</rule>
<file>src/</file>
<file>tests/</file>
<file>config/</file>
<file>public/</file>
<exclude-pattern>./src/Migrations/*</exclude-pattern>
<exclude-pattern>./src/Kernel.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/bootstrap.php</exclude-pattern>
<file>bin/</file>
<file>config/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
</ruleset>
<!-- composer require "squizlabs/php_codesniffer=*" dev -->