mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-25 09:50:35 +01:00
After conversing with Dave from CodeClimate, he suggested these changes to adjust CodeClimate's detection so that it does not alert as frequently for code blocks that are similar, but functionally different. I also added a line to enforce the rule of threes, since CC often alerted only when two blocks were identical.
30 lines
539 B
YAML
30 lines
539 B
YAML
# Save as .codeclimate.yml (note leading .) in project root directory
|
|
version: "2"
|
|
languages:
|
|
Ruby: false
|
|
JavaScript: true
|
|
PHP: false
|
|
checks:
|
|
file-lines:
|
|
config:
|
|
threshold: 500
|
|
method-lines:
|
|
config:
|
|
threshold: 50
|
|
method-complexity:
|
|
config:
|
|
threshold: 10
|
|
similar-code:
|
|
config:
|
|
threshold: 65
|
|
plugins:
|
|
duplication:
|
|
enabled: true
|
|
config:
|
|
languages:
|
|
javascript:
|
|
mass_threshold: 110
|
|
count_threshold: 3
|
|
exclude_paths:
|
|
- "public/vendor/*"
|
|
- "test/*" |