-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
94 lines (74 loc) · 1.66 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
inherit_gem:
bixby: bixby_default.yml
AllCops:
TargetRubyVersion: 3.1
DisabledByDefault: true
DisplayCopNames: true
NewCops: enable
Exclude:
- "db/**/*"
- "script/**/*"
- "tmp/**/*"
- "vendor/**/*"
- "node_modules/**/*"
- "bin/*"
- "storage/**/*"
Layout/IndentationConsistency:
EnforcedStyle: indented_internal_methods
Layout/LineLength:
Exclude:
- "spec/system/data_migration/*"
Metrics/AbcSize:
Exclude:
- app/models/work_activity.rb
- app/jobs/approved_file_move_job.rb
Metrics/BlockLength:
Exclude:
- "config/environments/**/*"
- "lib/tasks/**/*"
- "spec/**/*"
- "config/routes.rb"
Max: 40 # default: 25
Metrics/ClassLength:
Exclude:
- app/controllers/works_wizard_controller.rb
Max: 150 # default: 100
Metrics/CyclomaticComplexity:
Exclude:
- app/models/work_activity.rb
Metrics/MethodLength:
Exclude:
- app/models/s3_file.rb
- app/models/work_activity.rb
- app/jobs/approved_file_move_job.rb
- app/services/s3_query_service.rb
Max: 15 # default: 10
Metrics/ParameterLists:
Enabled: false
Metrics/PerceivedComplexity:
Exclude:
- app/models/work_activity.rb
Style/GuardClause:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Rails/I18nLocaleTexts:
Enabled: false
Rails/Output:
Exclude:
- app/models/ark.rb
- app/services/work_update_metadata_service.rb
Rails/UnknownEnv:
Enabled: false
RSpec/DescribeClass:
Exclude:
- "spec/views/**/*"
- "spec/system/**/*"
RSpec/ExampleLength:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/Next:
Enabled: false