Skip to content

Commit

Permalink
Ignore some more Code Climate issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Oct 29, 2016
1 parent b5bd440 commit 5664a9f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,24 @@ engines:
checks:
no-alert:
enabled: false
exclude_fingerprints:
## Ignore 'exit(1)' in test-hello.js:
- 868673da0d2ee8f1ff139f0a004b166f
fixme:
enabled: true
phpmd:
enabled: true
config:
rulesets: ".phpmd-ruleset.xml"
exclude_fingerprints:
## Ignore some proper uses of 'exit()':
- 133867cfc661d32c08cde20fdfdbbc4b
- aa5c13777d476ad6ae1ac827f13fbe33
- b37f144cecd350adf1332a6fcd6ace73
- 874c8ca5aff6ed6343b0b81b872835e8
- e1302c82b896beb140d4bdad80e2ab70
- 454fe7ae0b787e00690f382c2cc31553

shellcheck:
## Disable since we already check it ourselves, and the tests are not
## configurable on Code Climate.
Expand Down
11 changes: 10 additions & 1 deletion .phpmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@
<description>Custom PHPMD rules for DOMjudge</description>

<!-- Include these rulesets unchanged: -->
<rule ref="rulesets/codesize.xml" />
<rule ref="rulesets/design.xml" />
<rule ref="rulesets/unusedcode.xml" />

<rule ref="rulesets/codesize.xml">
<exclude name="CyclomaticComplexity"/>
</rule>

<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="20" />
</properties>
</rule>

<rule ref="rulesets/naming.xml">
<exclude name="ShortVariable"/>
</rule>
Expand Down

0 comments on commit 5664a9f

Please sign in to comment.