Skip to content

Commit

Permalink
Coding standards v3 (#1762)
Browse files Browse the repository at this point in the history
* Coding standards v3

* fix style errors

* update v3
  • Loading branch information
danepowell authored Jul 10, 2024
1 parent b9a3d2b commit ceddc2f
Show file tree
Hide file tree
Showing 245 changed files with 22,446 additions and 21,429 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"zumba/amplitude-php": "^1.0.4"
},
"require-dev": {
"acquia/coding-standards": "^2",
"acquia/coding-standards": "^3",
"brianium/paratest": "^6.6",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"dominikb/composer-license-checker": "^2.4",
Expand Down
110 changes: 55 additions & 55 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 3 additions & 30 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,9 @@
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/issues/981 -->
<exclude-pattern>tests/fixtures/*</exclude-pattern>

<rule ref="AcquiaPHP" />

<rule ref="Drupal.Commenting.InlineComment"/>
<rule ref="SlevomatCodingStandard.Arrays.AlphabeticallySortedByKeys" />
<rule ref="SlevomatCodingStandard.Arrays.DisallowImplicitArrayCreation"/>
<rule ref="SlevomatCodingStandard.Arrays.MultiLineArrayEndBracketPlacement"/>
<rule ref="SlevomatCodingStandard.Arrays.SingleLineArrayWhitespace"/>
<rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/>

<rule ref="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion" />
<rule ref="SlevomatCodingStandard.Commenting.DeprecatedAnnotationDeclaration" />
<rule ref="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode" />
<rule ref="SlevomatCodingStandard.Commenting.DocCommentSpacing" />
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment" />
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
<properties>
<property name="forbiddenAnnotations" type="array" value="@author,@created,@version,@package,@copyright,@license,@throws" />
</properties>
<rule ref="AcquiaPHPStrict">
<exclude name="Generic.Files.LineLength"/>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenComments">
<properties>
<property name="forbiddenCommentPatterns" type="array" value="/Class .*/" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration" />
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment" />
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment" />
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
<exclude name="SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingTraversableTypeHintSpecification"/>
</rule>
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />

<rule ref="Generic.PHP.ForbiddenFunctions">
<properties>
Expand All @@ -62,4 +34,5 @@
</property>
</properties>
</rule>

</ruleset>
Loading

0 comments on commit ceddc2f

Please sign in to comment.