-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
80 lines (66 loc) · 1.74 KB
/
.rubocop.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
require:
- rubocop-rails
- rubocop-graphql
Rails:
Enabled: true
AllCops:
Exclude:
- "**/bin/**/**"
- "**/db/schema.rb"
- "**/db/jobs_schema.rb"
- "**/lib/active_storage/service/azure_storage_service.rb"
- "**/lib/azure/storage/blob/default.rb"
- "**/lib/azure/storage/common/default.rb"
TargetRubyVersion: "3.2"
NewCops: enable
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsblocklength
Metrics/BlockLength:
Exclude:
- "**/config/environments/*.rb"
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
- "**/test/**/*.rb"
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsclasslength
Metrics/ClassLength:
Exclude:
- "**/config/environments/*.rb"
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
- "**/test/**/*.rb"
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
Metrics/ModuleLength:
Exclude:
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
- "**/test/**/*.rb"
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmethodlength
Metrics/MethodLength:
CountComments: false
Max: 15
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsabcsize
Metrics/AbcSize:
Max: 20
Style/RedundantConstantBase:
Exclude:
- "**/config/routes.rb"
- "**/config/routes/**/*.rb"
Lint/MissingSuper:
Exclude:
- "app/components/**/*.rb"
Style/Documentation:
Exclude:
- "test/**/*.rb"
GraphQL/ObjectDescription:
Exclude:
- "app/graphql/**/base_*.rb"
- "app/graphql/resolvers/**/*.rb"
- "test/**/*.rb"
Rails/DangerousColumnNames:
Exclude:
- "db/migrate/*.rb"
Rails/BulkChangeTable:
Exclude:
- "db/migrate/*.rb"
Rails/FindEach:
Exclude:
- "db/migrate/*.rb"