Skip to content

Commit 5cfa3a9

Browse files
committed
update rubocop configs
1 parent 3f7aaac commit 5cfa3a9

File tree

2 files changed

+153
-4
lines changed

2 files changed

+153
-4
lines changed

.rubocop.yml

Lines changed: 152 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
AllCops:
22
TargetRubyVersion: 2.6
33
DisplayCopNames: true
4-
NewCops: enable
54

65
Bundler/DuplicatedGem:
76
Enabled: false
@@ -76,5 +75,155 @@ Style/TrailingCommaInHashLiteral:
7675
Style/TrailingCommaInArrayLiteral:
7776
EnforcedStyleForMultiline: "comma"
7877

79-
Gemspec/RequireMFA:
80-
Enabled: false
78+
Gemspec/DateAssignment: # new in 1.10
79+
Enabled: true
80+
81+
Layout/LineEndStringConcatenationIndentation: # new in 1.18
82+
Enabled: true
83+
84+
Layout/SpaceBeforeBrackets: # new in 1.7
85+
Enabled: true
86+
87+
Lint/AmbiguousAssignment: # new in 1.7
88+
Enabled: true
89+
90+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
91+
Enabled: true
92+
93+
Lint/AmbiguousRange: # new in 1.19
94+
Enabled: true
95+
96+
Lint/DeprecatedConstants: # new in 1.8
97+
Enabled: true
98+
99+
Lint/DuplicateBranch: # new in 1.3
100+
Enabled: true
101+
102+
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
103+
Enabled: true
104+
105+
Lint/EmptyBlock: # new in 1.1
106+
Enabled: true
107+
108+
Lint/EmptyClass: # new in 1.3
109+
Enabled: true
110+
111+
Lint/EmptyInPattern: # new in 1.16
112+
Enabled: true
113+
114+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
115+
Enabled: true
116+
117+
Lint/LambdaWithoutLiteralBlock: # new in 1.8
118+
Enabled: true
119+
120+
Lint/NoReturnInBeginEndBlocks: # new in 1.2
121+
Enabled: true
122+
123+
Lint/NumberedParameterAssignment: # new in 1.9
124+
Enabled: true
125+
126+
Lint/OrAssignmentToConstant: # new in 1.9
127+
Enabled: true
128+
129+
Lint/RedundantDirGlobSort: # new in 1.8
130+
Enabled: true
131+
132+
Lint/RequireRelativeSelfPath: # new in 1.22
133+
Enabled: true
134+
135+
Lint/SymbolConversion: # new in 1.9
136+
Enabled: true
137+
138+
Lint/ToEnumArguments: # new in 1.1
139+
Enabled: true
140+
141+
Lint/TripleQuotes: # new in 1.9
142+
Enabled: true
143+
144+
Lint/UnexpectedBlockArity: # new in 1.5
145+
Enabled: true
146+
147+
Lint/UnmodifiedReduceAccumulator: # new in 1.1
148+
Enabled: true
149+
150+
Lint/UselessRuby2Keywords: # new in 1.23
151+
Enabled: true
152+
153+
Naming/BlockForwarding: # new in 1.24
154+
Enabled: true
155+
156+
Security/IoMethods: # new in 1.22
157+
Enabled: true
158+
159+
Style/ArgumentsForwarding: # new in 1.1
160+
Enabled: true
161+
162+
Style/CollectionCompact: # new in 1.2
163+
Enabled: true
164+
165+
Style/DocumentDynamicEvalDefinition: # new in 1.1
166+
Enabled: true
167+
168+
Style/EndlessMethod: # new in 1.8
169+
Enabled: true
170+
171+
Style/FileRead: # new in 1.24
172+
Enabled: true
173+
174+
Style/FileWrite: # new in 1.24
175+
Enabled: true
176+
177+
Style/HashConversion: # new in 1.10
178+
Enabled: true
179+
180+
Style/HashExcept: # new in 1.7
181+
Enabled: true
182+
183+
Style/IfWithBooleanLiteralBranches: # new in 1.9
184+
Enabled: true
185+
186+
Style/InPatternThen: # new in 1.16
187+
Enabled: true
188+
189+
Style/MapToHash: # new in 1.24
190+
Enabled: true
191+
192+
Style/MultilineInPatternThen: # new in 1.16
193+
Enabled: true
194+
195+
Style/NegatedIfElseCondition: # new in 1.2
196+
Enabled: true
197+
198+
Style/NestedFileDirname: # new in 1.26
199+
Enabled: true
200+
201+
Style/NilLambda: # new in 1.3
202+
Enabled: true
203+
204+
Style/NumberedParameters: # new in 1.22
205+
Enabled: true
206+
207+
Style/NumberedParametersLimit: # new in 1.22
208+
Enabled: true
209+
210+
Style/OpenStructUse: # new in 1.23
211+
Enabled: true
212+
213+
Style/QuotedSymbols: # new in 1.16
214+
Enabled: true
215+
216+
Style/RedundantArgument: # new in 1.4
217+
Enabled: true
218+
219+
Style/RedundantSelfAssignmentBranch: # new in 1.19
220+
Enabled: true
221+
222+
Style/SelectByRegexp: # new in 1.22
223+
Enabled: true
224+
225+
Style/StringChars: # new in 1.12
226+
Enabled: true
227+
228+
Style/SwapValues: # new in 1.1
229+
Enabled: true

simplecov-html.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
1414
gem.summary = gem.description
1515
gem.license = "MIT"
1616

17-
gem.required_ruby_version = ">= 2.4"
17+
gem.required_ruby_version = ">= 2.6"
1818

1919
gem.files = `git ls-files`.split("\n")
2020
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 commit comments

Comments
 (0)