-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
74 lines (55 loc) · 1.32 KB
/
.rubocop.yml
File metadata and controls
74 lines (55 loc) · 1.32 KB
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
inherit_gem:
gitlab-styles:
- rubocop-default.yml
inherit_from:
<% unless ENV['REVEAL_RUBOCOP_TODO'] == '1' %>
- '.rubocop_todo.yml'
<% end %>
AllCops:
# The oldest supported Ruby version.
TargetRubyVersion: 3.1
Exclude:
- 'vendor/**/*'
- 'tmp/**/*'
- 'bin/**/*'
# Use absolute path to avoid orphan directories with changed workspace root.
CacheRootDirectory: <%= Dir.getwd %>/tmp
MaxFilesInCache: 1_000_000
NewCops: enable
CodeReuse/ActiveRecord:
Enabled: false
Gemspec/RequiredRubyVersion:
Enabled: false
Gemspec/RequireMFA:
Enabled: false
Lint/HashCompareByIdentity:
Enabled: true
Lint/RedundantSafeNavigation:
Enabled: true
Style/ClassEqualityComparison:
Enabled: true
Lint/ShadowingOuterLocalVariable:
Enabled: false
Metrics/AbcSize:
Max: 18
Metrics/MethodLength:
Max: 20
Rails:
Enabled: false
Style/ModuleFunction:
Enabled: false
Style/SignalException:
Enabled: false
Layout/LineLength:
Max: 180
Layout/SpaceBeforeFirstArg:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
# Short-hand Hash syntax does not work prior 3.1.
# See https://gitlab.com/gitlab-org/gitlab/-/issues/435940#note_1703307479
Style/HashSyntax:
EnforcedShorthandSyntax: never
# Anonymous block forwarding does not work prior 3.1.
Naming/BlockForwarding:
Enabled: false