-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpcs.xml
executable file
·41 lines (32 loc) · 1.49 KB
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0"?>
<ruleset name="onovas">
<description>PHP CodeSniffer: Configuración personalizada.</description>
<file>.</file>
<arg name="extensions" value="php,module,inc,install,test,profile,theme"/>
<config name="drupal_core_version" value="8"/>
<exclude-pattern>*/.git/*</exclude-pattern>
<exclude-pattern>*/config/*</exclude-pattern>
<exclude-pattern>*/css/*</exclude-pattern>
<exclude-pattern>*/js/*</exclude-pattern>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/documentation/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/.tmp-doc/*</exclude-pattern>
<exclude-pattern>README.md</exclude-pattern>
<exclude-pattern>LICENSE.md</exclude-pattern>
<exclude-pattern>CHANGELOG.md</exclude-pattern>
<rule ref="Drupal">
<!-- Permitir clases sin comentarios -->
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
<!-- Permitir líneas de más de 80 caracteres -->
<exclude name="Drupal.Files.LineLength.TooLong"/>
<!-- Permitir arrays en una sóla línea -->
<exclude name="Drupal.Arrays.Array.LongLineDeclaration"/>
<!-- Algunos cambios en las descripciones breves -->
<exclude name="Drupal.Commenting.DocComment.MissingShort"/>
<exclude name="Drupal.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Drupal.Commenting.DocComment.ShortSingleLine"/>
<!-- Variables sin comentario -->
<exclude name="Drupal.Commenting.VariableComment"/>
</rule>
</ruleset>