Skip to content

Commit

Permalink
Setting codestyle to PSR-12
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Jan 31, 2023
1 parent 4760789 commit 58a80c8
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions ruleset.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<?xml version="1.0"?>
<ruleset name="Joomla">
<ruleset name="PSR12 with Joomla specific additions">
<description>
This is a PSR-12 compliant ruleset for Joomla.
</description>

<file>src</file>
<file>Tests</file>

<exclude-pattern>*/Tests/Stubs/*</exclude-pattern>

<arg name="extensions" value="php"/>
<arg name="report" value="full"/>
<arg name="tab-width" value="4"/>
<arg name="encoding" value="utf-8"/>
<arg value="sp"/>
<arg name="colors" />
<arg value="sp"/>

<!-- Exclude folders not containing production code -->
<exclude-pattern>*/.github/*</exclude-pattern>

<!-- Exclude 3rd party libraries. -->
<exclude-pattern>*/vendor/*</exclude-pattern>

<rule ref="Joomla">
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
</rule>

<rule ref="Joomla.Classes.InstantiateNewClasses">
<properties>
<property name="shortArraySyntax" value="true"/>
</properties>
<rule ref="PSR12">
<exclude name="Generic.Files.LineLength.MaxExceeded"/>
<exclude name="Generic.Files.LineLength.TooLong"/>
</rule>
</ruleset>

0 comments on commit 58a80c8

Please sign in to comment.