Skip to content

Commit

Permalink
Add phpcs.xml (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alkarex authored Sep 8, 2024
1 parent 21b3527 commit 91055d2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ indent_style = space
[*.{yaml,yml}]
indent_size = 2
indent_style = space

[*.xml]
indent_style = tab
19 changes: 19 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="SimplePie">
<arg name="extensions" value="php"/>
<exclude-pattern>./.git/</exclude-pattern>
<exclude-pattern>./compatibility_test/</exclude-pattern>
<exclude-pattern>./vendor/</exclude-pattern>
<rule ref="PSR12">
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
<exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine"/>
<exclude name="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace"/>
</rule>
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="165"/>
<property name="absoluteLineLimit" value="400"/>
</properties>
</rule>
</ruleset>

0 comments on commit 91055d2

Please sign in to comment.