From 0acd97fcb5858dca8c4ddb1e9ff9838cd591a2cf Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Mon, 2 Jan 2023 18:02:15 +0900 Subject: [PATCH 1/2] Bump rubocop from 1.24.1 to 1.42.0 --- Gemfile.lock | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 66c4301d..f613e189 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -84,6 +84,8 @@ GEM ffi (1.15.5-java) i18n (1.8.11) concurrent-ruby (~> 1.0) + json (2.6.3) + json (2.6.3-java) matrix (0.4.2) method_source (1.0.0) middleware (0.1.0) @@ -96,8 +98,8 @@ GEM racc (~> 1.4) nokogiri (1.12.5-java) racc (~> 1.4) - parallel (1.21.0) - parser (3.1.0.0) + parallel (1.22.1) + parser (3.1.3.0) ast (~> 2.4.1) power_assert (2.0.1) protobuf-cucumber (3.10.8) @@ -120,7 +122,7 @@ GEM rack (>= 1.0, < 3) rainbow (3.1.1) rake (13.0.6) - regexp_parser (2.2.0) + regexp_parser (2.6.1) rexml (3.2.5) rspec (3.10.0) rspec-core (~> 3.10.0) @@ -135,17 +137,18 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.10.0) rspec-support (3.10.3) - rubocop (1.24.1) + rubocop (1.42.0) + json (~> 2.3) parallel (~> 1.10) - parser (>= 3.0.0.0) + parser (>= 3.1.2.1) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.15.1, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.24.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.15.1) - parser (>= 3.0.1.1) + rubocop-ast (1.24.1) + parser (>= 3.1.1.0) ruby-progressbar (1.11.0) simplecov-html (0.12.3) simplecov_json_formatter (0.1.3) @@ -160,7 +163,7 @@ GEM thread_safe (0.3.6-java) tzinfo (2.0.4) concurrent-ruby (~> 1.0) - unicode-display_width (2.1.0) + unicode-display_width (2.3.0) webrick (1.7.0) websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) From d1bfa753f15ecd6f5edbda20fc78724001878e3e Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Mon, 2 Jan 2023 18:03:00 +0900 Subject: [PATCH 2/2] Correct `Style/ZeroLengthPredicate` --- lib/simplecov/source_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simplecov/source_file.rb b/lib/simplecov/source_file.rb index 5b2fded4..1cdbc7a9 100644 --- a/lib/simplecov/source_file.rb +++ b/lib/simplecov/source_file.rb @@ -86,7 +86,7 @@ def covered_strength end def no_lines? - lines.length.zero? || (lines.length == never_lines.size) + lines.empty? || (lines.length == never_lines.size) end def relevant_lines