File tree Expand file tree Collapse file tree 1 file changed +14
-19
lines changed Expand file tree Collapse file tree 1 file changed +14
-19
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <ruleset name =" Joomla" >
2
+ <ruleset name =" PSR12 with Joomla specific additions" >
3
+ <description >
4
+ This is a PSR-12 compliant ruleset for Joomla.
5
+ </description >
3
6
7
+ <file >src</file >
8
+ <file >Tests</file >
9
+
10
+ <exclude-pattern >*/Tests/Stubs/*</exclude-pattern >
11
+
12
+ <arg name =" extensions" value =" php" />
4
13
<arg name =" report" value =" full" />
5
14
<arg name =" tab-width" value =" 4" />
6
15
<arg name =" encoding" value =" utf-8" />
7
- <arg value =" sp" />
8
16
<arg name =" colors" />
17
+ <arg value =" sp" />
9
18
10
- <!-- Exclude folders not containing production code -->
11
- <exclude-pattern >*/.github/*</exclude-pattern >
12
-
13
- <!-- Exclude 3rd party libraries. -->
14
- <exclude-pattern >*/src/phputf8/*</exclude-pattern >
15
- <exclude-pattern >*/vendor/*</exclude-pattern >
16
-
17
- <rule ref =" Joomla" >
18
- <exclude name =" Generic.Arrays.DisallowShortArraySyntax" />
19
- <!-- Required due to class methods which are named in snake case -->
20
- <exclude name =" Joomla.NamingConventions.ValidFunctionName.ScopeNotCamelCaps" />
21
- </rule >
22
-
23
- <rule ref =" Joomla.Classes.InstantiateNewClasses" >
24
- <properties >
25
- <property name =" shortArraySyntax" value =" true" />
26
- </properties >
19
+ <rule ref =" PSR12" >
20
+ <exclude name =" Generic.Files.LineLength.MaxExceeded" />
21
+ <exclude name =" Generic.Files.LineLength.TooLong" />
27
22
</rule >
28
23
</ruleset >
You can’t perform that action at this time.
0 commit comments