-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
81 lines (61 loc) · 1.17 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
inherit_from: .rubocop_todo.yml
require:
- rubocop-packaging
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
DisabledByDefault: true
SuggestExtensions: false
Exclude:
- db/**/*
- vendor/bundle/**/*
- config/**/*
- lib/tasks/**/*
- bin/*
Performance:
Exclude:
- spec/**/*
Performance/BindCall:
Enabled: true
Performance/DeletePrefix:
Enabled: true
Performance/DeleteSuffix:
Enabled: true
Performance/EndWith:
Enabled: true
Performance/FlatMap:
Enabled: true
Performance/MapCompact:
Enabled: true
Performance/RedundantMerge:
Enabled: true
Performance/RegexpMatch:
Enabled: true
Performance/ReverseEach:
Enabled: true
Performance/SelectMap:
Enabled: true
Performance/StartWith:
Enabled: true
Performance/StringReplacement:
Enabled: true
Performance/UnfreezeString:
Enabled: true
# Prefer assert_not over assert !
Rails/AssertNot:
Include:
- spec/**/*
# Prefer assert_not_x over refute_x
Rails/RefuteMethods:
Include:
- spec/**/*
Rails/IndexBy:
Enabled: true
Rails/IndexWith:
Enabled: true
# Prefer &&/|| over and/or.
Style/AndOr:
Enabled: true