Skip to content

Commit 8b2b2a0

Browse files
committed
WIP
1 parent 6f2b2af commit 8b2b2a0

File tree

2 files changed

+7
-61
lines changed

2 files changed

+7
-61
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"phpunit/phpunit": "^9.0",
3838
"squizlabs/php_codesniffer": "^3.4",
3939
"symfony/thanks": "^1.2",
40-
"laravel/legacy-factories": "^1.0",
41-
"genealabs/php-coding-standards": "^0.1.4"
40+
"laravel/legacy-factories": "^1.0"
4241
},
4342
"autoload": {
4443
"psr-4": {

phpcs.xml

Lines changed: 6 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,11 @@
11
<?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">
73
<description>GeneaLabs coding standards.</description>
84

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"/>
6310
</rule>
6411
</ruleset>

0 commit comments

Comments
 (0)