File: phpcs.xml

package info (click to toggle)
shaarli 0.16.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,628 kB
  • sloc: php: 30,003; javascript: 2,061; makefile: 147; xml: 69; python: 42; sh: 37
file content (29 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<ruleset name="Shaarli">
  <description>The Shaarli coding standards</description>

  <file>index.php</file>
  <file>application</file>
  <file>plugins</file>
  <file>tests</file>

  <exclude-pattern>*/*.css</exclude-pattern>
  <exclude-pattern>*/*.js</exclude-pattern>

  <arg name="colors"/>

  <rule ref="PSR12"/>
  <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>

  <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
    <!--  index.php bootstraps everything, so yes mixed symbols with side effects  -->
    <exclude-pattern>index.php</exclude-pattern>
    <exclude-pattern>plugins/*</exclude-pattern>
    <exclude-pattern>tests/bootstrap.php</exclude-pattern>
    <exclude-pattern>tests/utils/RainTPL.php</exclude-pattern>
  </rule>

  <rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
    <exclude-pattern>tests/utils/RainTPL.php</exclude-pattern>
  </rule>
</ruleset>