Add Code Climate integration.
This commit is contained in:
37
.codeclimate.yml
Normal file
37
.codeclimate.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
version: 2
|
||||||
|
checks:
|
||||||
|
argument-count:
|
||||||
|
config:
|
||||||
|
threshold: 4
|
||||||
|
file-lines:
|
||||||
|
config:
|
||||||
|
threshold: 500
|
||||||
|
method-count:
|
||||||
|
config:
|
||||||
|
threshold: 40
|
||||||
|
method-lines:
|
||||||
|
config:
|
||||||
|
threshold: 100
|
||||||
|
plugins:
|
||||||
|
eslint:
|
||||||
|
enabled: true
|
||||||
|
channel: "eslint-6"
|
||||||
|
config:
|
||||||
|
extensions:
|
||||||
|
- .js
|
||||||
|
- .js.erb
|
||||||
|
rubocop:
|
||||||
|
enabled: true
|
||||||
|
channel: "rubocop-0-83"
|
||||||
|
stylelint:
|
||||||
|
enabled: true
|
||||||
|
exclude_patterns:
|
||||||
|
- "app/javascript/vendor"
|
||||||
|
- "config/"
|
||||||
|
- "db/"
|
||||||
|
- "lib/"
|
||||||
|
- "log/"
|
||||||
|
- "script/"
|
||||||
|
- "tmp/"
|
||||||
|
- "**/node_modules/"
|
||||||
|
- "**/test/"
|
||||||
15
.rubocop.yml
15
.rubocop.yml
@@ -37,6 +37,21 @@ Layout/SpaceInsideBlockBraces:
|
|||||||
Layout/SpaceInsideHashLiteralBraces:
|
Layout/SpaceInsideHashLiteralBraces:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Metrics/BlockNesting:
|
||||||
|
Max: 4
|
||||||
|
|
||||||
|
Metrics/ClassLength:
|
||||||
|
Max: 500
|
||||||
|
|
||||||
|
Metrics/MethodLength:
|
||||||
|
Max: 100
|
||||||
|
|
||||||
|
Metrics/ModuleLength:
|
||||||
|
Max: 500
|
||||||
|
|
||||||
|
Metrics/ParameterLists:
|
||||||
|
Max: 4
|
||||||
|
|
||||||
Lint/InheritException:
|
Lint/InheritException:
|
||||||
EnforcedStyle: standard_error
|
EnforcedStyle: standard_error
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
[](https://codeclimate.com/github/danbooru/danbooru/maintainability) [](https://codeclimate.com/github/danbooru/danbooru/test_coverage)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
It is recommended that you install Danbooru on a Debian-based system
|
It is recommended that you install Danbooru on a Debian-based system
|
||||||
|
|||||||
Reference in New Issue
Block a user