diff --git a/Gemfile.lock b/Gemfile.lock index 26ce9545..6dc0c39a 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) diff --git a/ext/classifier/extconf.rb b/ext/classifier/extconf.rb index de6f16a8..884f63a8 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 0d1819e9..08613faf 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. #