Skip to content

Commit

Permalink
Update CodeClimate configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainruaud committed Apr 16, 2019
1 parent e2359c5 commit e60b520
Showing 1 changed file with 75 additions and 12 deletions.
87 changes: 75 additions & 12 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,77 @@
---
engines:
duplication:
version: "2"
checks:
argument-count:
enabled: true
config:
threshold: 4
languages:
- javascript
- php
- javascript
- php
complex-logic:
enabled: true
config:
threshold: 4
languages:
- javascript
- php
file-lines:
enabled: true
config:
threshold: 250
languages:
- javascript
- php
method-complexity:
enabled: true
config:
threshold: 5
languages:
- javascript
- php
method-count:
enabled: true
config:
threshold: 10
languages:
- javascript
- php
method-lines:
enabled: true
config:
threshold: 40
languages:
- javascript
- php
nested-control-flow:
enabled: true
config:
threshold: 4
languages:
- javascript
- php
return-statements:
enabled: true
config:
threshold: 2
languages:
- javascript
- php
similar-code:
enabled: true
config:
threshold: 60
languages:
- javascript
- php
identical-code:
enabled: true
config:
threshold: 40
languages:
- javascript
- php
plugins:
eslint:
enabled: true
fixme:
Expand All @@ -15,11 +81,8 @@ engines:
config:
file_extensions: php
ignore-undeclared: true
ratings:
paths:
- "**.js"
- "**.php"
exclude_paths:
- src/*/Test
- vendor/*
- Resources/*
exclude_patterns:
- "src/*/Test"
- "src/*/Setup/*Setup.php"
- "vendor/*"
- "Resources/*"

0 comments on commit e60b520

Please sign in to comment.