From c63876b23068e22e0d5eb7192516516675c184b2 Mon Sep 17 00:00:00 2001 From: Yuri Smirnov Date: Sat, 30 Nov 2024 12:15:55 +0300 Subject: [PATCH] update some stuff --- .rubocop.yml | 153 ----------------------------------------- .tool-versions | 2 +- Gemfile | 1 + Gemfile.lock | 34 +++++---- lib/simplecov-html.rb | 2 +- simplecov-html.gemspec | 2 +- 6 files changed, 23 insertions(+), 171 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 862f610..fdc3021 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -80,156 +80,3 @@ Style/TrailingCommaInHashLiteral: Style/TrailingCommaInArrayLiteral: EnforcedStyleForMultiline: "comma" - -Gemspec/DateAssignment: # new in 1.10 - Enabled: true - -Layout/LineEndStringConcatenationIndentation: # new in 1.18 - Enabled: true - -Layout/SpaceBeforeBrackets: # new in 1.7 - Enabled: true - -Lint/AmbiguousAssignment: # new in 1.7 - Enabled: true - -Lint/AmbiguousOperatorPrecedence: # new in 1.21 - Enabled: true - -Lint/AmbiguousRange: # new in 1.19 - Enabled: true - -Lint/DeprecatedConstants: # new in 1.8 - Enabled: true - -Lint/DuplicateBranch: # new in 1.3 - Enabled: true - -Lint/DuplicateRegexpCharacterClassElement: # new in 1.1 - Enabled: true - -Lint/EmptyBlock: # new in 1.1 - Enabled: true - -Lint/EmptyClass: # new in 1.3 - Enabled: true - -Lint/EmptyInPattern: # new in 1.16 - Enabled: true - -Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21 - Enabled: true - -Lint/LambdaWithoutLiteralBlock: # new in 1.8 - Enabled: true - -Lint/NoReturnInBeginEndBlocks: # new in 1.2 - Enabled: true - -Lint/NumberedParameterAssignment: # new in 1.9 - Enabled: true - -Lint/OrAssignmentToConstant: # new in 1.9 - Enabled: true - -Lint/RedundantDirGlobSort: # new in 1.8 - Enabled: true - -Lint/RequireRelativeSelfPath: # new in 1.22 - Enabled: true - -Lint/SymbolConversion: # new in 1.9 - Enabled: true - -Lint/ToEnumArguments: # new in 1.1 - Enabled: true - -Lint/TripleQuotes: # new in 1.9 - Enabled: true - -Lint/UnexpectedBlockArity: # new in 1.5 - Enabled: true - -Lint/UnmodifiedReduceAccumulator: # new in 1.1 - Enabled: true - -Lint/UselessRuby2Keywords: # new in 1.23 - Enabled: true - -Naming/BlockForwarding: # new in 1.24 - Enabled: true - -Security/IoMethods: # new in 1.22 - Enabled: true - -Style/ArgumentsForwarding: # new in 1.1 - Enabled: true - -Style/CollectionCompact: # new in 1.2 - Enabled: true - -Style/DocumentDynamicEvalDefinition: # new in 1.1 - Enabled: true - -Style/EndlessMethod: # new in 1.8 - Enabled: true - -Style/FileRead: # new in 1.24 - Enabled: true - -Style/FileWrite: # new in 1.24 - Enabled: true - -Style/HashConversion: # new in 1.10 - Enabled: true - -Style/HashExcept: # new in 1.7 - Enabled: true - -Style/IfWithBooleanLiteralBranches: # new in 1.9 - Enabled: true - -Style/InPatternThen: # new in 1.16 - Enabled: true - -Style/MapToHash: # new in 1.24 - Enabled: true - -Style/MultilineInPatternThen: # new in 1.16 - Enabled: true - -Style/NegatedIfElseCondition: # new in 1.2 - Enabled: true - -Style/NestedFileDirname: # new in 1.26 - Enabled: true - -Style/NilLambda: # new in 1.3 - Enabled: true - -Style/NumberedParameters: # new in 1.22 - Enabled: true - -Style/NumberedParametersLimit: # new in 1.22 - Enabled: true - -Style/OpenStructUse: # new in 1.23 - Enabled: true - -Style/QuotedSymbols: # new in 1.16 - Enabled: true - -Style/RedundantArgument: # new in 1.4 - Enabled: true - -Style/RedundantSelfAssignmentBranch: # new in 1.19 - Enabled: true - -Style/SelectByRegexp: # new in 1.22 - Enabled: true - -Style/StringChars: # new in 1.12 - Enabled: true - -Style/SwapValues: # new in 1.1 - Enabled: true diff --git a/.tool-versions b/.tool-versions index a9e31a4..053cba7 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 2.7.1 +ruby 3.3 diff --git a/Gemfile b/Gemfile index b931438..adfbeda 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,7 @@ source "https://rubygems.org" gemspec +gem "logger" gem "rake", ">= 11" # Use local copy of simplecov in development if you want to diff --git a/Gemfile.lock b/Gemfile.lock index b83d00a..2911e1c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,42 +18,44 @@ GEM ast (2.4.2) concurrent-ruby (1.3.4) docile (1.4.1) - execjs (2.9.1) + execjs (2.10.0) ffi (1.17.0) - json (2.7.2) - json (2.7.2-java) + ffi (1.17.0-arm64-darwin) + ffi (1.17.0-java) + json (2.8.2) + json (2.8.2-java) language_server-protocol (3.17.0.3) logger (1.6.1) - minitest (5.25.1) + minitest (5.25.2) parallel (1.26.3) - parser (3.3.5.0) + parser (3.3.6.0) ast (~> 2.4.1) racc racc (1.8.1) racc (1.8.1-java) - rack (3.1.7) + rack (3.1.8) rainbow (3.1.1) rake (13.2.1) rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - regexp_parser (2.9.2) - rubocop (1.66.1) + regexp_parser (2.9.3) + rubocop (1.69.0) json (~> 2.3) language_server-protocol (>= 3.17.0) parallel (~> 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.4, < 3.0) - rubocop-ast (>= 1.32.2, < 2.0) + rubocop-ast (>= 1.36.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.32.3) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.36.2) parser (>= 3.3.1.0) rubocop-minitest (0.36.0) rubocop (>= 1.61, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-performance (1.21.1) + rubocop-performance (1.23.0) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) rubocop-rake (0.6.0) @@ -68,9 +70,11 @@ GEM sprockets (4.2.1) concurrent-ruby (~> 1.0) rack (>= 2.2.4, < 4) - uglifier (4.2.0) + uglifier (4.2.1) execjs (>= 0.3.0, < 3) - unicode-display_width (2.5.0) + unicode-display_width (3.1.2) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) PLATFORMS arm64-darwin-22 @@ -92,4 +96,4 @@ DEPENDENCIES uglifier BUNDLED WITH - 2.4.3 + 2.5.23 diff --git a/lib/simplecov-html.rb b/lib/simplecov-html.rb index bd02841..4c324d6 100644 --- a/lib/simplecov-html.rb +++ b/lib/simplecov-html.rb @@ -15,7 +15,7 @@ module SimpleCov module Formatter - class HTMLFormatter # rubocop:disable Metrics/ClassLength + class HTMLFormatter def initialize @branch_coverage = SimpleCov.branch_coverage? @method_coverage = SimpleCov.method_coverage? diff --git a/simplecov-html.gemspec b/simplecov-html.gemspec index 3326675..27794dc 100644 --- a/simplecov-html.gemspec +++ b/simplecov-html.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |gem| gem.summary = gem.description gem.license = "MIT" - gem.required_ruby_version = ">= 2.6" + gem.required_ruby_version = ">= 2.5" gem.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").reject do |f|