Add some codeclimate recommended config

Codeclimate automatically generates a configuration and recommends
applying it. I have applied some of the options they specify.

The only thing I removed was the restriction of rubocop checks
which we are currently failing (I'd prefer they fail) and
additional languages such as php, python and javascript which
had strangely been added to the config.
This commit is contained in:
Gerard Caulfield 2016-07-04 17:18:40 +10:00
parent bc1f6efc40
commit 46e801b2b7
No known key found for this signature in database
GPG Key ID: 623B327128A9BEC3
2 changed files with 18 additions and 0 deletions

16
.codeclimate.yml Normal file
View File

@ -0,0 +1,16 @@
---
engines:
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- "**.rb"
exclude_paths:
- spec/

2
.rubocop.yml Normal file
View File

@ -0,0 +1,2 @@
AllCops:
DisabledByDefault: false