mirror of
https://github.com/sitelease/sugar-cube-client.git
synced 2025-10-29 11:02:30 +01:00
Added coding standards
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
# https://editorconfig.org
|
||||
root = true
|
||||
|
||||
[*.php]
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
indent_size = 4
|
||||
indent_style = space
|
||||
insert_final_newline = true
|
||||
|
||||
12
.gitattributes
vendored
12
.gitattributes
vendored
@ -1,17 +1,5 @@
|
||||
* text=auto
|
||||
|
||||
.* text
|
||||
*.http text
|
||||
*.info text
|
||||
*.json text
|
||||
*.md text
|
||||
*.neon text
|
||||
*.php text diff=php
|
||||
*.txt text
|
||||
*.xml text
|
||||
*.yml text
|
||||
*.yaml text
|
||||
|
||||
*.ico binary
|
||||
*.jpg binary
|
||||
*.pdf binary
|
||||
|
||||
10
.phpcs.xml
Normal file
10
.phpcs.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<ruleset name="SLPSR12" namespace="Sitelease\OpenCore">
|
||||
<description>Sitelease's augmented PSR-12 standard</description>
|
||||
<rule ref="PSR12">
|
||||
<exclude name="PSR12.Files.FileHeader" />
|
||||
<exclude name="Squiz.WhiteSpace.OperatorSpacing" />
|
||||
<exclude name="PSR12.Operators.OperatorSpacing" />
|
||||
<exclude name="PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace"/>
|
||||
</rule>
|
||||
</ruleset>
|
||||
Reference in New Issue
Block a user