/
.rubocop.yml
executable file
·95 lines (95 loc) · 1.97 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
95
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: disable
Exclude:
- bin/**/*
- db/**/*
- vendor/**/*
- config/routes.rb
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true
Layout/EndOfLine:
Enabled: false
Layout/LineLength:
Enabled: false
Layout/SpaceAroundMethodCallOperator:
Enabled: false
Layout/ArrayAlignment:
Exclude:
- app/helpers/address_cleaner.rb
Lint/ConstantDefinitionInBlock:
Enabled: false
Lint/DeprecatedOpenSSLConstant:
Enabled: true
Lint/MixedRegexpCaptureTypes:
Enabled: true
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/CyclomaticComplexity:
Exclude:
- app/helpers/ordinal_columns_helper.rb
Metrics/MethodLength:
Enabled: false
Naming/VariableNumber:
Enabled: false
Rails/FilePath:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/UnknownEnv:
Enabled: false
RSpec/ContextWording:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/InstanceVariable:
Enabled: false
RSpec/LeakyConstantDeclaration:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NamedSubject:
Enabled: false
RSpec/BeforeAfterAll:
Exclude:
- spec/features/export_spec.rb
- spec/features/upload_aws_spec.rb
RSpec/FactoryBot/CreateList:
Exclude:
- spec/helpers/suid_generator_spec.rb
RSpec/MessageSpies:
Enabled: false
Style/Documentation:
Enabled: false
Style/ExponentialNotation:
Enabled: false
Style/IfUnlessModifier:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/HashTransformValues:
Enabled: false
Style/RedundantFetchBlock:
Enabled: true
Style/RedundantRegexpCharacterClass:
Enabled: true
Style/RedundantRegexpEscape:
Enabled: true
Style/Semicolon:
Exclude:
- config/routes.rb
Style/SlicingWithRange:
Enabled: true