|
1 | 1 | <?xml version="1.0"?> |
2 | | -<ruleset |
3 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | | - name="PHP_CodeSniffer" |
5 | | - xsi:noNamespaceSchemaLocation="phpcs.xsd" |
6 | | -> |
| 2 | +<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PHP_CodeSniffer" xsi:noNamespaceSchemaLocation="phpcs.xsd"> |
7 | 3 | <description>GeneaLabs coding standards.</description> |
8 | 4 |
|
9 | | - <file>app</file> |
10 | | - <file>bootstrap</file> |
11 | | - <file>config</file> |
12 | | - <file>database</file> |
13 | | - <file>resources</file> |
14 | | - <file>routes</file> |
15 | | - <file>storage</file> |
16 | | - <file>tests</file> |
17 | | - |
18 | | - <exclude-pattern>*/*.css</exclude-pattern> |
19 | | - <exclude-pattern>*/*.js</exclude-pattern> |
20 | | - <exclude-pattern>*/*.xml</exclude-pattern> |
21 | | - <exclude-pattern>*/cache/*</exclude-pattern> |
22 | | - <exclude-pattern>*/docker/*</exclude-pattern> |
23 | | - <exclude-pattern>*/public/*</exclude-pattern> |
24 | | - <exclude-pattern>*/reference/*</exclude-pattern> |
25 | | - <exclude-pattern>*/storage/debugbar/*</exclude-pattern> |
26 | | - <exclude-pattern>*/storage/framework/*</exclude-pattern> |
27 | | - <exclude-pattern>*/storage/logs/*</exclude-pattern> |
28 | | - <exclude-pattern>*/tools/*</exclude-pattern> |
29 | | - <exclude-pattern>*/vendor/*</exclude-pattern> |
30 | | - <exclude-pattern>bootstrap/autoload.php</exclude-pattern> |
31 | | - <exclude-pattern>bootstrap/cache/*</exclude-pattern> |
32 | | - |
33 | | - <arg name="tab-width" value="4"/> |
34 | | - <arg value="p"/> |
35 | | - |
36 | | - <rule ref="GeneaLabs"> |
37 | | - <exclude name="GeneaLabs.TypeHinting.ReturnType.MissingReturnType"/> |
38 | | - <exclude name="GeneaLabs.Whitespace.EmptyLineBeforeReturn.EmptyLineBeforeReturn"/> |
39 | | - <exclude name="GeneaLabs.Whitespace.EmptyLineAroundControlStructure.EmptyLineBeforeControlStructure"/> |
40 | | - </rule> |
41 | | - |
42 | | - <rule ref="SlevomatCodingStandard"> |
43 | | - <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/> |
44 | | - <exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName"/> |
45 | | - <exclude name="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces.NoEmptyLineAfterOpeningBrace"/> |
46 | | - <exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces.NonFullyQualified"/> |
47 | | - <exclude name="SlevomatCodingStandard.ControlStructures.RequireSingleLineCondition.RequiredSingleLineCondition"/> |
48 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalFunctions.NonFullyQualified"/> |
49 | | - <exclude name="SlevomatCodingStandard.Classes.EmptyLinesAroundClassBraces.NoEmptyLineBeforeClosingBrace"/> |
50 | | - <exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectWhitespaceBetweenOpenTagAndDeclare"/> |
51 | | - <exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes.IncorrectStrictTypesFormat"/> |
52 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions.NonFullyQualifiedException"/> |
53 | | - <exclude name="SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses"/> |
54 | | - <exclude name="SlevomatCodingStandard.ControlStructures.RequireYodaComparison.RequiredYodaComparison"/> |
55 | | - <exclude name="SlevomatCodingStandard.Classes.TraitUseSpacing.IncorrectLinesCountBeforeFirstUse"/> |
56 | | - <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification"/> |
57 | | - <exclude name="SlevomatCodingStandard.Functions.StaticClosure.ClosureNotStatic"/> |
58 | | - <exclude name="SlevomatCodingStandard.Functions.RequireArrowFunction.RequiredArrowFunction"/> |
59 | | - <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants.NonFullyQualified"/> |
60 | | - <exclude name="SlevomatCodingStandard.Functions.RequireSingleLineCall.RequiredSingleLineCall"/> |
61 | | - <exclude name="SlevomatCodingStandard.Operators.DisallowIncrementAndDecrementOperators.DisallowedPostIncrementOperator"/> |
62 | | - <exclude name="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator.DisallowedShortTernaryOperator)phpcs"/> |
| 5 | + <rule ref="PSR1"></rule> |
| 6 | + <rule ref="PSR2"></rule> |
| 7 | + <rule ref="PSR12"> |
| 8 | + <exclude name="PSR12.Classes.ClassInstantiation.MissingParentheses"/> |
| 9 | + <exclude name="PSR12.Functions.ReturnTypeDeclaration.SpaceBeforeColon"/> |
63 | 10 | </rule> |
64 | 11 | </ruleset> |
0 commit comments