build-configs(phpcs)
This commit is contained in:
parent
fe360b28c0
commit
8cc950a69c
|
@ -12,7 +12,10 @@ database:
|
|||
php:
|
||||
version: 8.1-fpm-bullseye
|
||||
phpcs:
|
||||
standard: Drupal,DrupalPractice
|
||||
paths:
|
||||
- web/modules/custom
|
||||
standards:
|
||||
- Drupal
|
||||
phpstan:
|
||||
level: max
|
||||
paths:
|
||||
|
|
|
@ -4,10 +4,29 @@
|
|||
<ruleset name="docker-example-drupal coding standards">
|
||||
<description>PHPCS configuration file for docker-example-drupal.</description>
|
||||
|
||||
<file>web/modules/custom</file>
|
||||
|
||||
<arg value="np"/>
|
||||
|
||||
<rule ref="Drupal"/>
|
||||
<rule ref="DrupalPractice"/>
|
||||
|
||||
<rule ref="Drupal">
|
||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||
<exclude name="Drupal.Commenting.Deprecated"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.ContentAfterOpen"/>
|
||||
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectParamVarName"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.IncorrectTypeHint"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.InvalidReturn"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingParamComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.MissingReturnComment"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.ParamTypeSpaces"/>
|
||||
<exclude name="Drupal.Commenting.FunctionComment.TypeHintMissing"/>
|
||||
<exclude name="Drupal.Commenting.InlineComment.DocBlock"/>
|
||||
<exclude name="Drupal.Commenting.VariableComment.Missing"/>
|
||||
<exclude name="Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps"/>
|
||||
<exclude name="DrupalPractice.Objects.StrictSchemaDisabled.StrictConfigSchema"/>
|
||||
</rule>
|
||||
</ruleset>
|
||||
|
|
Loading…
Reference in a new issue