|
1 | 1 | <?xml version="1.0"?>
|
2 | 2 | <ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="laravel-migrations-generator" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
|
3 |
| - <description>Custom code standard for Laravel Migrations Generator</description> |
| 3 | + <description>Custom code standard for Laravel Migrations Generator</description> |
4 | 4 |
|
5 |
| - <rule ref="PSR12"> |
6 |
| - <exclude name="Generic.Files.LineLength"/> |
7 |
| - </rule> |
| 5 | + <file>src</file> |
| 6 | + <file>tests</file> |
8 | 7 |
|
9 |
| - <file>src</file> |
10 |
| - <file>tests</file> |
| 8 | + <exclude-pattern>tests/resources/database/migrations/*.php</exclude-pattern> |
11 | 9 |
|
12 |
| - <exclude-pattern>tests/resources/database/migrations/*.php</exclude-pattern> |
| 10 | + <rule ref="PSR12"> |
| 11 | + <exclude name="Generic.Files.LineLength"/> |
| 12 | + </rule> |
| 13 | + |
| 14 | + <!-- Align corresponding assignment statement tokens --> |
| 15 | + <rule ref="Generic.Formatting.MultipleStatementAlignment"> |
| 16 | + <properties> |
| 17 | + <property name="error" value="true"/> |
| 18 | + </properties> |
| 19 | + </rule> |
| 20 | + |
| 21 | + <rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned"/> |
| 22 | + |
| 23 | + <rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/> |
| 24 | + <rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/> |
| 25 | + <rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/> |
| 26 | + <rule ref="SlevomatCodingStandard.Classes.MethodSpacing"/> |
| 27 | + <rule ref="SlevomatCodingStandard.Classes.ParentCallSpacing"/> |
| 28 | + <rule ref="SlevomatCodingStandard.Classes.PropertyDeclaration"/> |
| 29 | + <rule ref="SlevomatCodingStandard.Classes.PropertySpacing"/> |
| 30 | + <rule ref="SlevomatCodingStandard.Classes.RequireSingleLineMethodSignature"/> |
| 31 | + <rule ref="SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration"/> |
| 32 | + <rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing"/> |
| 33 | + <rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/> |
| 34 | + <rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration"/> |
| 35 | + <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/> |
| 36 | + <rule ref="SlevomatCodingStandard.ControlStructures.BlockControlStructureSpacing"/> |
| 37 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowContinueWithoutIntegerOperandInSwitch"/> |
| 38 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison"/> |
| 39 | + <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/> |
| 40 | + <rule ref="SlevomatCodingStandard.ControlStructures.LanguageConstructWithParentheses"/> |
| 41 | + <rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses"/> |
| 42 | + <rule ref="SlevomatCodingStandard.ControlStructures.RequireMultiLineCondition"/> |
| 43 | + <rule ref="SlevomatCodingStandard.ControlStructures.UselessIfConditionWithReturn"/> |
| 44 | + <rule ref="SlevomatCodingStandard.ControlStructures.UselessTernaryOperator"/> |
| 45 | + <rule ref="SlevomatCodingStandard.Exceptions.DeadCatch"/> |
| 46 | + <rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/> |
| 47 | + <rule ref="SlevomatCodingStandard.Functions.DisallowEmptyFunction"/> |
| 48 | + <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/> |
| 49 | + <rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/> |
| 50 | + <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/> |
| 51 | + <rule ref="SlevomatCodingStandard.Namespaces.DisallowGroupUse"/> |
| 52 | + <rule ref="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> |
| 53 | + <rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/> |
| 54 | + <rule ref="SlevomatCodingStandard.Namespaces.NamespaceDeclaration"/> |
| 55 | + <rule ref="SlevomatCodingStandard.Namespaces.NamespaceSpacing"/> |
| 56 | + <rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/> |
| 57 | + <rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/> |
| 58 | + <rule ref="SlevomatCodingStandard.Namespaces.UnusedUses"/> |
| 59 | + <rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/> |
| 60 | + <rule ref="SlevomatCodingStandard.Namespaces.UseFromSameNamespace"/> |
| 61 | + <rule ref="SlevomatCodingStandard.Namespaces.UseSpacing"/> |
| 62 | + <rule ref="SlevomatCodingStandard.Namespaces.UselessAlias"/> |
| 63 | + <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators"/> |
| 64 | + <rule ref="SlevomatCodingStandard.Operators.NegationOperatorSpacing"/> |
| 65 | + <rule ref="SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator"/> |
| 66 | + <rule ref="SlevomatCodingStandard.Operators.RequireOnlyStandaloneIncrementAndDecrementOperators"/> |
| 67 | + <rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing"/> |
| 68 | + <rule ref="SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall"/> |
| 69 | + <rule ref="SlevomatCodingStandard.PHP.DisallowReference"/> |
| 70 | + <rule ref="SlevomatCodingStandard.PHP.ForbiddenClasses"/> |
| 71 | + <rule ref="SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking"/> |
| 72 | + <rule ref="SlevomatCodingStandard.PHP.RequireNowdoc"/> |
| 73 | + <rule ref="SlevomatCodingStandard.PHP.ShortList"/> |
| 74 | + <rule ref="SlevomatCodingStandard.PHP.TypeCast"/> |
| 75 | + <rule ref="SlevomatCodingStandard.PHP.UselessParentheses"/> |
| 76 | + <rule ref="SlevomatCodingStandard.PHP.UselessSemicolon"/> |
| 77 | + <rule ref="SlevomatCodingStandard.TypeHints.LongTypeHints"/> |
| 78 | + <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition"/> |
| 79 | + <rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/> |
| 80 | + <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHintSpacing"/> |
| 81 | + <rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHintSpacing"/> |
| 82 | + <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"/> |
| 83 | + <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint"/> |
| 84 | + <rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable"/> |
| 85 | + <rule ref="SlevomatCodingStandard.Variables.DuplicateAssignmentToVariable"/> |
| 86 | + <rule ref="SlevomatCodingStandard.Variables.UnusedVariable"/> |
| 87 | + <rule ref="SlevomatCodingStandard.Whitespaces.DuplicateSpaces"> |
| 88 | + <properties> |
| 89 | + <property name="ignoreSpacesBeforeAssignment" value="true"/> |
| 90 | + <property name="ignoreSpacesInComment" value="true"/> |
| 91 | + <property name="ignoreSpacesInParameters" value="true"/> |
| 92 | + </properties> |
| 93 | + </rule> |
| 94 | + |
| 95 | + <!-- <rule ref="SlevomatCodingStandard.Commenting.DisallowOneLinePropertyDocComment"/>--> |
| 96 | + <!-- <rule ref="SlevomatCodingStandard.Commenting.RequireOneLineDocComment"/>--> |
| 97 | + <!-- <rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment"/>--> |
| 98 | + <!-- <rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment"/>--> |
| 99 | + <!-- <rule ref="SlevomatCodingStandard.Complexity.Cognitive"/>--> |
| 100 | + <!-- <rule ref="SlevomatCodingStandard.ControlStructures.DisallowEmpty"/>--> |
| 101 | + <!-- <rule ref="SlevomatCodingStandard.Functions.StrictCall"/>--> |
13 | 102 | </ruleset>
|
0 commit comments