From b7e825b513a7ac45f143d4432ed7f42c25ec7f6a Mon Sep 17 00:00:00 2001 From: Lukas Audzevicius Date: Mon, 22 Jan 2024 15:49:56 +0000 Subject: [PATCH] (CAT-1688) Upgrade Rubocop Following a recent team decision, we are implementing a Rubocop Upgrade, moving the version from 1.48.1 to 1.50.0. This should be the final version until Puppet 7 is unsupported. --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 9 +-------- Gemfile | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2ccc89f3..3e374020 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,3 +17,6 @@ AllCops: # Disabled Style/ClassAndModuleChildren: Enabled: false + +Layout/LineLength: + Max: 200 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a903be1a..8631cb2d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-19 09:06:42 UTC using RuboCop version 1.48.1. +# on 2024-01-22 15:48:54 UTC using RuboCop version 1.50.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -124,10 +124,3 @@ Style/TrailingCommaInArguments: Exclude: - 'lib/puppetlabs_spec_helper/tasks/fixtures.rb' - 'spec/unit/puppetlabs_spec_helper/tasks/fixture_helpers_spec.rb' - -# Offense count: 17 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. -# URISchemes: http, https -Layout/LineLength: - Max: 195 diff --git a/Gemfile b/Gemfile index a7906ba6..99374e92 100644 --- a/Gemfile +++ b/Gemfile @@ -30,7 +30,7 @@ group :development do gem 'rake' gem 'rspec', '~> 3.1' gem 'rspec-its', '~> 1.0' - gem 'rubocop', '~> 1.48.1', require: false + gem 'rubocop', '~> 1.50.0', require: false gem 'rubocop-rspec', '~> 2.19', require: false gem 'rubocop-performance', '~> 1.16', require: false