Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
avoid check style error with namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Aug 8, 2017
1 parent afdec3a commit e1e61b0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
</target>

<target name="codestyle" depends="prepare">
<phpcodesniffer standard="PSR2">
<phpcodesniffer standard="codingstyle.xml">
<formatter type="checkstyle" outfile="${builddir}/checkstyle.xml"/>
<fileset dir="features">
<include name="**/*.php"/>
<include name="**/*.php"/>
</fileset>
<fileset dir="tests">
<include name="**/*.php"/>
<include name="**/*.php"/>
</fileset>
<fileset dir="www">
<include name="**/*.php"/>
<exclude name="lib/HTML/QuickForm.php"/>
<exclude name="lib/HTML/QuickForm/**/*.php"/>
<exclude name="lib/HTML/QuickForm.php"/>
<exclude name="lib/HTML/QuickForm/**/*.php"/>
</fileset>
</phpcodesniffer>
</target>
Expand Down
8 changes: 8 additions & 0 deletions codingstyle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="centreonCodingStyle">
<description>Centreon coding style.</description>
<rule ref="PSR2" />
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace">
<severity>0</severity>
</rule>
</ruleset>

0 comments on commit e1e61b0

Please sign in to comment.