-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
67 lines (66 loc) · 1.6 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
require:
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.1.2
DisplayCopNames: true
StyleGuideCopsOnly: false
NewCops: enable
Style/Encoding:
Enabled: false
Style/LambdaCall:
Enabled: false
Style/Documentation:
Description: Document classes and non-namespace modules.
Enabled: false
Layout/LineLength:
Description: Limit lines to 120 characters.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
Enabled: true
Max: 120
AllowURI: true
URISchemes:
- http
- https
Layout/EmptyLinesAroundClassBody:
Description: Keeps track of empty lines around class bodies.
Enabled: true
EnforcedStyle: empty_lines
SupportedStyles:
- empty_lines
- no_empty_lines
Style/RegexpLiteral:
Description: Use %r for regular expressions matching more than `MaxSlashes` '/'
characters. Use %r only for regular expressions matching more than `MaxSlashes`
'/' character.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
Enabled: false
Metrics/BlockLength:
Max: 315
Enabled: true
Rails/DynamicFindBy:
Enabled: false
Rails/SkipsModelValidations:
Enabled: false
Rails/HasAndBelongsToMany:
Enabled: false
Rails/HasManyOrHasOneDependent:
Enabled: false
Rails/InverseOf:
Enabled: false
Rails/LexicallyScopedActionFilter:
Enabled: false
Style/FormatStringToken:
EnforcedStyle: template
Lint/MissingSuper:
Enabled: false
Style/MissingRespondToMissing:
Enabled: false
RSpec/NamedSubject:
Enabled: false
Naming/MethodParameterName:
MinNameLength: 2
AllowedNames:
- "_"
Naming/MemoizedInstanceVariableName:
Enabled: false