-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrubocop-metrics.yml
36 lines (30 loc) · 1 KB
/
rubocop-metrics.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
#
## https://rubocop.readthedocs.io/en/latest/cops_metrics/
#
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsabcsize
Metrics/AbcSize:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsclasslength
Metrics/ClassLength:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmethodlength
Metrics/MethodLength:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
Metrics/ModuleLength:
Exclude:
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
- "**/spec/**/*.rb"
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#blocklength
Metrics/BlockLength:
Exclude:
- "**/spec/**/*.rb"
- "**/config/environments/*.rb"
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
- "**/lib/tasks/auto_annotate_models.rake"
# https://docs.rubocop.org/rubocop/cops_metrics.html#metricscollectionliterallength
Metrics/CollectionLiteralLength:
Enabled: true
LengthThreshold: 250