upd
This commit is contained in:
@@ -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" /> -->
|
||||
|
||||
Reference in New Issue
Block a user