[WIP] code climate config file (#654)

code climate config file
This commit is contained in:
Devin Howard 2016-09-23 18:36:47 +08:00 committed by GitHub
parent 4afab70414
commit bb5ba4861d
4 changed files with 51 additions and 0 deletions

32
.codeclimate.yml Normal file
View file

@ -0,0 +1,32 @@
---
engines:
brakeman:
enabled: true
bundler-audit:
enabled: true
duplication:
enabled: true
config:
languages:
- ruby
- javascript
eslint:
enabled: true
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- 'Gemfile.lock'
- '**.erb'
- '**.rb'
- '**.js'
- '**.jsx'
exclude_paths:
- app/assets/images/
- app/assets/javascripts/lib/
- frontend/src/patched/
- db/
- script/
- spec/

3
.eslintignore Normal file
View file

@ -0,0 +1,3 @@
**/*{.,-}min.js
frontend/src/patched/*
app/assets/javascripts/lib/*

9
.eslintrc.js Normal file
View file

@ -0,0 +1,9 @@
module.exports = {
"sourceType": "module",
"parser": "babel-eslint",
"extends": "standard",
"installedESLint": true,
"plugins": [
"standard"
]
};

View file

@ -36,5 +36,12 @@
"socket.io": "0.9.12",
"underscore": "^1.4.4",
"webpack": "^1.13.1"
},
"devDependencies": {
"babel-eslint": "^6.1.2",
"eslint": "^3.5.0",
"eslint-config-standard": "^6.0.1",
"eslint-plugin-promise": "^2.0.1",
"eslint-plugin-standard": "^2.0.0"
}
}