forked from openSUSE/open-build-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.codeclimate.yml
44 lines (44 loc) · 1.65 KB
/
.codeclimate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "2"
# Align the configuration of CodeClimate checks with those of RuboCop cops
# Documentation: https://docs.codeclimate.com/docs/maintainability#section-checks
checks:
# Same as cop Metrics/ParameterLists from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsparameterlists
argument-count:
config:
threshold: 5
# Same as cops Metrics/ClassLength and Metrics/ModuleLength from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmodulelength
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsclasslength
file-lines:
enabled: false # We prefer to disable this check as it calculates differently from RuboCop cops
# Same as cop Metrics/PerceivedComplexity from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsperceivedcomplexity
method-complexity:
config:
threshold: 8
# Same as cop Metrics/MethodLength from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmethodlength
method-length:
config:
threshold: 10
# Same as cop Metrics/BlockNesting from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocknesting
nested-control-flow:
config:
threshold: 3
# Same as cop Metrics/CyclomaticComplexity from RuboCop
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricscyclomaticcomplexity
return-statements:
config:
threshold: 7
exclude_patterns:
- "dist/"
- "src/api/test/"
- "src/api/spec/"
- "src/api/db/"
- "docs/api/restility"
- "src/api/app/assets/javascripts/webui"
- "src/api/vendor/assets/"
- "src/api/public/apidocs-new/"
- "src/api/app/lib/backend/doc/js/"