-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
55 lines (46 loc) · 1.3 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
---
inherit_from: .rubocop_todo.yml
inherit_gem:
gitlab-styles:
- rubocop-bundler.yml
- rubocop-gemspec.yml
- rubocop-layout.yml
- rubocop-lint.yml
- rubocop-metrics.yml
- rubocop-naming.yml
- rubocop-style.yml
AllCops:
TargetRubyVersion: 3.2
SuggestExtensions: false
# This project doesn't use ActiveRecord, so these will all be false
# positives.
CodeReuse/ActiveRecord:
Enabled: false
# We often have long strings in this project and breaking those across
# multiple lines does not really improve readability.
Layout/LineLength:
Enabled: false
# In many cases, indentation following the first argument makes it harder to
# read.
Layout/FirstArgumentIndentation:
Enabled: false
Lint/HashCompareByIdentity: # (new in 0.93)
Enabled: true
Lint/RedundantSafeNavigation: # (new in 0.93)
Enabled: true
Style/ClassEqualityComparison: # (new in 0.93)
Enabled: true
RSpec/StubbedMock: # (new in 1.44)
Enabled: false
# Json serialization does not pose a security treat within test files.
GitlabSecurity/JsonSerialization:
Exclude:
- 'spec/**/*.rb'
# Public send does not pose a security treat within test files.
GitlabSecurity/PublicSend:
Exclude:
- 'spec/**/*.rb'
InternalAffairs/MissingCopDepartment:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false