diff --git a/Gemfile.lock b/Gemfile.lock index ad2419a..c8c89bd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -92,8 +92,8 @@ GEM diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) rspec-support (3.13.6) - rubocop (1.89.0) - json (~> 2.3) + rubocop (1.90.0) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) parallel (>= 1.10) diff --git a/lib/web_translate_it/safe/s3.rb b/lib/web_translate_it/safe/s3.rb index 9d36d97..e7d63e3 100644 --- a/lib/web_translate_it/safe/s3.rb +++ b/lib/web_translate_it/safe/s3.rb @@ -40,7 +40,7 @@ def save # rubocop:todo Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/M puts("Upload took #{format('%.2f', benchmark)} second(s).") if verbose? end - # rubocop:todo Metrics/PerceivedComplexity + # rubocop:todo-next Metrics/PerceivedComplexity def cleanup # rubocop:todo Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Metrics/MethodLength return if local_only? @@ -59,7 +59,6 @@ def cleanup # rubocop:todo Metrics/CyclomaticComplexity, Metrics/PerceivedComple AWS::S3::Bucket.objects(bucket, prefix: f)[0].delete unless dry_run? || local_only? end end - # rubocop:enable Metrics/PerceivedComplexity def bucket config[:s3, :bucket] diff --git a/lib/web_translate_it/safe/sftp.rb b/lib/web_translate_it/safe/sftp.rb index 3b64d4e..0d21e59 100644 --- a/lib/web_translate_it/safe/sftp.rb +++ b/lib/web_translate_it/safe/sftp.rb @@ -61,7 +61,7 @@ def save # rubocop:todo Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/P puts '...done' if verbose? end - # rubocop:todo Metrics/PerceivedComplexity + # rubocop:todo-next Metrics/PerceivedComplexity def cleanup # rubocop:todo Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity, Metrics/AbcSize, Metrics/MethodLength return if local_only? || dry_run? @@ -85,7 +85,6 @@ def cleanup # rubocop:todo Metrics/CyclomaticComplexity, Metrics/PerceivedComple end end end - # rubocop:enable Metrics/PerceivedComplexity def host config[:sftp, :host] diff --git a/spec/integration/archive_integration_spec.rb b/spec/integration/archive_integration_spec.rb index 0ba7653..4036aa5 100644 --- a/spec/integration/archive_integration_spec.rb +++ b/spec/integration/archive_integration_spec.rb @@ -60,7 +60,7 @@ system "tar -zxvf #{@backup} -C #{@target}" @test = "#{@target}/#{@root}/src" - puts @test # rubocop:todo Rspec/Output + puts @test # rubocop:todo RSpec/Output end it 'includes asd1/2/3' do