This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(build): improve coding style checks for master (#7827)
* enh(build): reporting codingstyle violations on github * fix(build): update syntax of ViolationsToGitHub in Jenkinsfile. * enh(build): modifying build file * enh(build): modifying ruleset file
- Loading branch information
Showing
3 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="Centreon Standard"> | ||
<description>Custom rules defined by Centreon</description> | ||
|
||
<exclude-pattern>*/centreon-build/*</exclude-pattern> | ||
<exclude-pattern>*/doc/*</exclude-pattern> | ||
<exclude-pattern>*/node_modules/*</exclude-pattern> | ||
<exclude-pattern>*/vendor/*</exclude-pattern> | ||
<exclude-pattern>*/lib/HTML/QuickForm.php</exclude-pattern> | ||
<exclude-pattern>*/lib/HTML/QuickForm/**/*.php</exclude-pattern> | ||
<exclude-pattern>*\.(?!(php$))</exclude-pattern> | ||
|
||
<rule ref="PSR2"/> | ||
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/> | ||
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols"> | ||
<exclude-pattern>www</exclude-pattern> | ||
</rule> | ||
<rule ref="PSR1.Classes.ClassDeclaration.MissingNamespace"> | ||
<exclude-pattern>features</exclude-pattern> | ||
<exclude-pattern>tests</exclude-pattern> | ||
<exclude-pattern>www</exclude-pattern> | ||
</rule> | ||
</ruleset> |