From 1bad2328b37689f3cf1d748c8024916ffc53143b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 09:02:21 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump rubocop from 1.89.0 to 1.91.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.89.0 to 1.91.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.89.0...v1.91.0) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.91.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 26ce954..6dc0c39 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -47,7 +47,7 @@ GEM hashdiff (1.2.1) i18n (1.14.8) concurrent-ruby (~> 1.0) - json (2.21.2) + json (3.0.2) language_server-protocol (3.17.0.6) lint_roller (1.1.0) listen (3.9.0) @@ -89,8 +89,8 @@ GEM tsort regexp_parser (2.12.0) rexml (3.4.4) - rubocop (1.89.0) - json (~> 2.3) + rubocop (1.91.0) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) parallel (>= 1.10) From 373c088134fea949b2ec9aed1ab79d653ad8c7fa Mon Sep 17 00:00:00 2001 From: Lucas Carlson Date: Sat, 19 Sep 2026 08:34:26 -0700 Subject: [PATCH 2/2] style: Use disable-next rubocop directives RuboCop 1.91 adds Style/DirectiveScope. The cop rejects a disable and enable pair around one statement, so the lint job failed on the version change. A disable-next directive gives the same scope. --- ext/classifier/extconf.rb | 3 +-- lib/classifier/logistic_regression.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ext/classifier/extconf.rb b/ext/classifier/extconf.rb index de6f16a..884f63a 100644 --- a/ext/classifier/extconf.rb +++ b/ext/classifier/extconf.rb @@ -1,6 +1,6 @@ require 'mkmf' -# rubocop:disable Style/GlobalVars +# rubocop:disable-next Style/GlobalVars if ENV['COVERAGE'] # Coverage flags: disable optimization for accurate line coverage $CFLAGS << ' -O0 -g --coverage -Wall' @@ -9,7 +9,6 @@ # Optimization flags for performance $CFLAGS << ' -O3 -ffast-math -Wall' end -# rubocop:enable Style/GlobalVars # Create the Makefile create_makefile('classifier/classifier_ext') diff --git a/lib/classifier/logistic_regression.rb b/lib/classifier/logistic_regression.rb index 0d1819e..08613fa 100644 --- a/lib/classifier/logistic_regression.rb +++ b/lib/classifier/logistic_regression.rb @@ -58,7 +58,7 @@ class LogisticRegression # rubocop:disable Metrics/ClassLength # # @rbs (*String | Symbol | Array[String | Symbol], ?learning_rate: Float, ?regularization: Float, # ?max_iterations: Integer, ?tolerance: Float, ?min_word_length: Integer) -> void - # rubocop:disable Metrics/ParameterLists + # rubocop:disable-next Metrics/ParameterLists def initialize(*categories, learning_rate: DEFAULT_LEARNING_RATE, regularization: DEFAULT_REGULARIZATION, max_iterations: DEFAULT_MAX_ITERATIONS, @@ -80,7 +80,6 @@ def initialize(*categories, learning_rate: DEFAULT_LEARNING_RATE, @storage = nil @min_word_length = min_word_length end - # rubocop:enable Metrics/ParameterLists # Trains the classifier with text for a category. #