From: Lukas Audzevicius Date: Thu, 8 Jun 2023 10:36:25 +0000 (+0100) Subject: Adjusting rubocop_todo.yml X-Git-Tag: v9.1.0~1^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=refs%2Fheads%2FMAINT_sync_changelog_changes;hp=a5c0b478756eff9694dbeda64b640634f802343b;p=puppet-modules%2Fpuppetlabs-apt.git Adjusting rubocop_todo.yml --- diff --git a/.rubocop.yml b/.rubocop.yml index 5be1f9f..33d66a7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ --- +inherit_from: .rubocop_todo.yml + require: - rubocop-performance - rubocop-rspec diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index da3cce5..07f617e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,51 +1,17 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2023-04-21 12:46:34 UTC using RuboCop version 1.48.1. +# on 2023-06-08 10:35:18 UTC using RuboCop version 1.48.1. # 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 # versions of RuboCop, may require this file to be generated again. # Offense count: 6 -# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. -Metrics/AbcSize: - Max: 40 - -# Offense count: 3 -# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode. -# AllowedMethods: refine -Metrics/BlockLength: - Max: 180 - -# Offense count: 3 -# Configuration parameters: AllowedMethods, AllowedPatterns. -Metrics/CyclomaticComplexity: - Max: 11 - -# Offense count: 8 -# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. -Metrics/MethodLength: - Max: 39 - -# Offense count: 3 -# Configuration parameters: AllowedMethods, AllowedPatterns. -Metrics/PerceivedComplexity: - Max: 12 - -# Offense count: 32 -# Configuration parameters: IgnoredMetadata. -RSpec/DescribeClass: - Enabled: false - -# Offense count: 13 -# Configuration parameters: CountAsOne. -RSpec/ExampleLength: - Max: 15 - -# Offense count: 3 -# Configuration parameters: AllowSubject. -RSpec/MultipleMemoizedHelpers: - Max: 6 +# This cop supports safe autocorrection (--autocorrect). +Lint/RedundantCopDisableDirective: + Exclude: + - 'lib/puppet/provider/apt_key/apt_key.rb' + - 'spec/unit/puppet/provider/apt_key_spec.rb' # Offense count: 204 # Configuration parameters: EnforcedStyle, IgnoreSharedExamples. @@ -65,33 +31,3 @@ RSpec/NamedSubject: - 'spec/defines/source_compat_spec.rb' - 'spec/defines/source_spec.rb' - 'spec/unit/facter/apt_update_last_success_spec.rb' - -# Offense count: 2 -# Configuration parameters: AllowedGroups. -RSpec/NestedGroups: - Max: 4 - -# Offense count: 24 -# Configuration parameters: AllowedPatterns. -# AllowedPatterns: ^expect_, ^assert_ -RSpec/NoExpectationExample: - Exclude: - - 'spec/acceptance/01_apt_class_spec.rb' - - 'spec/acceptance/apt_backports_spec.rb' - - 'spec/acceptance/apt_key_provider_spec.rb' - - 'spec/acceptance/apt_spec.rb' - -# Offense count: 3 -RSpec/StubbedMock: - Exclude: - - 'spec/unit/puppet/provider/apt_key_spec.rb' - -# Offense count: 2 -Security/Open: - Exclude: - - 'lib/puppet/provider/apt_key/apt_key.rb' - -# Offense count: 1 -Style/MixinUsage: - Exclude: - - 'spec/spec_helper.rb'