-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
158 lines (125 loc) · 2.53 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
require:
- rubocop-performance
- rubocop-rails
- rubocop-rake
- rubocop-rspec
AllCops:
Exclude:
- './*'
- 'bin/**/*'
- 'config/**/*'
- 'coverage/**/*'
- 'db/**/*'
- 'lib/**/*'
- 'log/**/*'
- 'node_modules/**/*'
- 'public/**/*'
- 'spec/rails_helper.rb'
- 'spec/spec_helper.rb'
- 'tmp/**/*'
- 'vendor/**/*'
- '.git/**/*'
NewCops: enable
TargetRubyVersion: 2.7
Layout/CommentIndentation:
Exclude:
- 'spec/**/*.rb'
Layout/HashAlignment:
EnforcedHashRocketStyle:
- key
- table
EnforcedColonStyle:
- key
- table
Layout/LineLength:
Max: 80
IgnoredPatterns:
- !ruby/regexp /\A +(it|describe|context|shared_examples|include_examples|it_behaves_like) ["']/
Exclude:
- 'spec/**/*.rb'
- 'lib/tasks/**/*.rake'
- 'config/**/*.rb'
- 'Gemfile'
- 'Rakefile'
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*.rb'
Lint/InterpolationCheck:
Exclude:
- 'spec/**/*.rb'
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*.rb'
- '**/*.gemspec'
Metrics/ClassLength:
Exclude:
- 'spec/**/*.rb'
Metrics/MethodLength:
Exclude:
- 'spec/**/*.rb'
- 'app/serializers/**/*.rb'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*.rb'
Naming/InclusiveLanguage:
FlaggedTerms:
offence:
Suggestions:
- offense
Naming/VariableNumber:
Exclude:
- 'spec/**/*.rb'
Performance/CollectionLiteralInLoop:
Exclude:
- 'spec/**/*.rb'
Rails/DynamicFindBy:
Enabled: false
Rails/UniqueValidationWithoutIndex:
Enabled: false
Rake/Desc:
Enabled: false
RSpec/DescribeClass:
Exclude:
- 'spec/features/**/*.rb'
RSpec/DescribedClass:
EnforcedStyle: explicit
RSpec/ExampleLength:
Enabled: false
RSpec/ImplicitExpect:
EnforcedStyle: should # Custom
RSpec/ImplicitSubject:
EnforcedStyle: single_line_only # Default
RSpec/LetSetup:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Style/ClassAndModuleChildren:
Exclude:
- 'app/controllers/**/*.rb'
Style/Documentation:
Enabled: false
Style/EmptyMethod:
Exclude:
- 'app/controllers/**/*'
Style/FrozenStringLiteralComment:
Enabled: false
Style/MultilineIfThen:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/SymbolArray:
Exclude:
- 'config/routes.rb'
- 'app/controllers/**/*.rb'
- 'app/models/**/*.rb'
- 'Gemfile'
- 'Rakefile'
- 'spec/**/*.rb'