Added coding standards

This commit is contained in:
Benjamin Blake
2023-05-18 22:27:59 -06:00
parent 5deac6cf55
commit 70fb0b15d8
3 changed files with 12 additions and 13 deletions

View File

@ -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
View File

@ -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
View 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>