Skip to content

Commit 686d5cd

Browse files
committed
Update to RuboCop 1.39, enable rubocop-rspec and rubocop-rake
1 parent 504adb5 commit 686d5cd

File tree

8 files changed

+292
-72
lines changed

8 files changed

+292
-72
lines changed

.idea/util.iml

Lines changed: 33 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.rubocop.yml

Lines changed: 157 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,162 @@ Style/SwapValues: # (new in 1.1)
332332
############################################################
333333
# Added in RuboCop 1.10
334334

335-
Gemspec/DateAssignment: # (new in 1.10)
336-
Enabled: true
337335
Style/HashConversion: # (new in 1.10)
338336
Enabled: true
337+
338+
############################################################
339+
# Added in RuboCop 1.12
340+
341+
Style/StringChars: # (new in 1.12)
342+
Enabled: true
343+
344+
############################################################
345+
# Added in RuboCop 1.16
346+
347+
Lint/EmptyInPattern: # (new in 1.16)
348+
Enabled: true
349+
Style/InPatternThen: # (new in 1.16)
350+
Enabled: true
351+
Style/MultilineInPatternThen: # (new in 1.16)
352+
Enabled: true
353+
Style/QuotedSymbols: # (new in 1.16)
354+
Enabled: true
355+
356+
############################################################
357+
# Added in RuboCop 1.18
358+
359+
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
360+
Enabled: true
361+
362+
############################################################
363+
# Added in RuboCop 1.19
364+
365+
Lint/AmbiguousRange: # (new in 1.19)
366+
Enabled: true
367+
Style/RedundantSelfAssignmentBranch: # (new in 1.19)
368+
Enabled: true
369+
370+
############################################################
371+
# Added in RuboCop 1.21
372+
373+
Lint/AmbiguousOperatorPrecedence: # (new in 1.21)
374+
Enabled: true
375+
Lint/IncompatibleIoSelectWithFiberScheduler: # (new in 1.21)
376+
Enabled: true
377+
378+
############################################################
379+
# Added in RuboCop 1.22
380+
381+
Lint/RequireRelativeSelfPath: # (new in 1.22)
382+
Enabled: true
383+
Security/IoMethods: # (new in 1.22)
384+
Enabled: true
385+
Style/NumberedParameters: # (new in 1.22)
386+
Enabled: true
387+
Style/NumberedParametersLimit: # (new in 1.22)
388+
Enabled: true
389+
Style/SelectByRegexp: # (new in 1.22)
390+
Enabled: true
391+
392+
############################################################
393+
# Added in RuboCop 1.23
394+
395+
Gemspec/RequireMFA: # (new in 1.23)
396+
Enabled: true
397+
Lint/UselessRuby2Keywords: # (new in 1.23)
398+
Enabled: true
399+
Style/OpenStructUse: # (new in 1.23)
400+
Enabled: true
401+
402+
############################################################
403+
# Added in RuboCop 1.24
404+
405+
Naming/BlockForwarding: # (new in 1.24)
406+
Enabled: true
407+
Style/FileRead: # (new in 1.24)
408+
Enabled: true
409+
Style/FileWrite: # (new in 1.24)
410+
Enabled: true
411+
Style/MapToHash: # (new in 1.24)
412+
Enabled: true
413+
414+
############################################################
415+
# Added in RuboCop 1.26
416+
417+
Style/NestedFileDirname: # (new in 1.26)
418+
Enabled: true
419+
420+
############################################################
421+
# Added in RuboCop 1.27
422+
423+
Lint/RefinementImportMethods: # (new in 1.27)
424+
Enabled: true
425+
Style/RedundantInitialize: # (new in 1.27)
426+
Enabled: true
427+
428+
############################################################
429+
# Added in RuboCop 1.28
430+
431+
Security/CompoundHash: # (new in 1.28)
432+
Enabled: true
433+
Style/FetchEnvVar: # (new in 1.28)
434+
Enabled: true
435+
Style/ObjectThen: # (new in 1.28)
436+
Enabled: true
437+
438+
############################################################
439+
# Added in RuboCop 1.29
440+
441+
Style/EnvHome: # (new in 1.29)
442+
Enabled: true
443+
444+
############################################################
445+
# Added in RuboCop 1.30
446+
447+
Gemspec/DeprecatedAttributeAssignment: # (new in 1.30)
448+
Enabled: true
449+
Style/MapCompactWithConditionalBlock: # (new in 1.30)
450+
Enabled: true
451+
452+
############################################################
453+
# Added in RuboCop 1.31
454+
455+
Layout/LineContinuationLeadingSpace: # (new in 1.31)
456+
Enabled: true
457+
Layout/LineContinuationSpacing: # (new in 1.31)
458+
Enabled: true
459+
Lint/ConstantOverwrittenInRescue: # (new in 1.31)
460+
Enabled: true
461+
Lint/NonAtomicFileOperation: # (new in 1.31)
462+
Enabled: true
463+
464+
############################################################
465+
# Added in RuboCop 1.32
466+
467+
Lint/RequireRangeParentheses: # (new in 1.32)
468+
Enabled: true
469+
Style/EmptyHeredoc: # (new in 1.32)
470+
Enabled: true
471+
472+
############################################################
473+
# Added in RuboCop 1.35
474+
475+
Style/MagicCommentFormat: # (new in 1.35)
476+
Enabled: true
477+
478+
############################################################
479+
# Added in RuboCop 1.37
480+
481+
Lint/DuplicateMagicComment: # (new in 1.37)
482+
Enabled: true
483+
Style/OperatorMethodCall: # (new in 1.37)
484+
Enabled: true
485+
Style/RedundantStringEscape: # (new in 1.37)
486+
Enabled: true
487+
488+
############################################################
489+
# Added in RuboCop 1.38
490+
491+
Style/RedundantEach: # (new in 1.38)
492+
Enabled: true
493+

berkeley_library-util.gemspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ Gem::Specification.new do |spec|
1717
spec.homepage = BerkeleyLibrary::Util::ModuleInfo::HOMEPAGE
1818

1919
spec.files = `git ls-files -z`.split("\x0")
20-
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
2120
spec.require_paths = ['lib']
2221

2322
spec.required_ruby_version = ruby_version
@@ -32,11 +31,12 @@ Gem::Specification.new do |spec|
3231
spec.add_development_dependency 'dotenv', '~> 2.7'
3332
spec.add_development_dependency 'rake', '~> 13.0'
3433
spec.add_development_dependency 'rspec', '~> 3.10'
35-
spec.add_development_dependency 'rubocop', '= 1.11'
36-
spec.add_development_dependency 'rubocop-rake', '~> 0.5'
37-
spec.add_development_dependency 'rubocop-rspec', '~> 2.2'
34+
spec.add_development_dependency 'rubocop', '= 1.39'
35+
spec.add_development_dependency 'rubocop-rake', '= 0.6.0'
36+
spec.add_development_dependency 'rubocop-rspec', '= 2.4.0'
3837
spec.add_development_dependency 'ruby-prof', '~> 0.17.0'
3938
spec.add_development_dependency 'simplecov', '~> 0.21'
4039
spec.add_development_dependency 'simplecov-rcov', '~> 0.2'
4140
spec.add_development_dependency 'webmock', '~> 3.12'
41+
spec.metadata['rubygems_mfa_required'] = 'true'
4242
end

0 commit comments

Comments
 (0)