-
Notifications
You must be signed in to change notification settings - Fork 816
Expand file tree
/
Copy path.rubocop.yml
More file actions
132 lines (95 loc) · 2.13 KB
/
Copy path.rubocop.yml
File metadata and controls
132 lines (95 loc) · 2.13 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
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
inherit_from: .rubocop_todo.yml
require:
- ./lib/rubocop/cop/rouge/no_building_alternation_pattern_in_regexp.rb
- ./lib/rubocop/cop/rouge/no_huge_collections.rb
plugins:
- rubocop-performance
- rubocop-minitest
- rubocop-rake
AllCops:
TargetRubyVersion: 3.0
DisplayCopNames: true
Exclude:
- "tasks/**/*"
- "vendor/**/*"
- "lib/rouge/lexers/**/keywords.rb"
- "lib/rouge/lexers/**/builtins.rb"
NewCops: enable
Rouge:
Enabled: true
Style:
Enabled: false
Layout:
Enabled: false
Layout/TrailingWhitespace:
Enabled: true
AllowInHeredoc: true
Layout/IndentationStyle:
Enabled: true
IndentationWidth: 2
EnforcedStyle: spaces
Layout/IndentationWidth:
Enabled: true
Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
Layout/EndOfLine:
Enabled: true
Layout/TrailingEmptyLines:
Enabled: true
Metrics:
Enabled: false
Bundler:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Lint/AssignmentInCondition:
AllowSafeAssignment: true
Lint/UnusedMethodArgument:
Enabled: false
Lint/UnusedBlockArgument:
Enabled: false
Lint/EmptyWhen:
Enabled: false
Lint/RedundantSplatExpansion:
Enabled: false
Lint/IneffectiveAccessModifier:
Enabled: false
Lint/AmbiguousOperatorPrecedence:
Enabled: false
# this just is plain broken, disabling
Lint/OutOfRangeRegexpRef:
Enabled: false
# there are actual reasons to do this
Lint/MissingSuper:
Enabled: false
# sometimes the arguments are deprecated you guys
Lint/ToEnumArguments:
Enabled: false
# sometimes we deal with very gnarly strings, this is not useful
Lint/NestedPercentLiteral:
Enabled: false
# usually not actionable
Lint/DuplicateBranch:
Enabled: false
Lint/NonLocalExitFromIterator:
Enabled: false
Naming/BlockForwarding:
Enabled: false
Naming/PredicateMethod:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Naming/HeredocDelimiterNaming:
Enabled: false
Naming/VariableNumber:
Enabled: false
Performance/RegexpMatch:
Enabled: false
Performance/ConstantRegexp:
Enabled: false
Performance/UnfreezeString:
Enabled: false
Performance/StringInclude:
Exclude:
- "spec/**/*.rb"