From 535e23b28b6eaa853214039b9e0c5ca098d5fdf8 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 17 Jan 2022 10:41:32 +0100 Subject: [PATCH] generate rubocop todo config --- .rubocop.yml | 2 + .rubocop_todo.yml | 112 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) create mode 100644 .rubocop_todo.yml diff --git a/.rubocop.yml b/.rubocop.yml index 53ac1898..ea22bff8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,4 +1,6 @@ --- +inherit_from: .rubocop_todo.yml + # Managed by modulesync - DO NOT EDIT # https://voxpupuli.org/docs/updating-files-managed-with-modulesync/ diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml new file mode 100644 index 00000000..879cd261 --- /dev/null +++ b/.rubocop_todo.yml @@ -0,0 +1,112 @@ +# This configuration was generated by +# `rubocop --auto-gen-config` +# on 2022-01-17 09:39:27 UTC using RuboCop version 1.22.3. +# 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: 1 +# Cop supports --auto-correct. +Layout/CommentIndentation: + Exclude: + - 'lib/puppet/provider/cs_location/pcs.rb' + +# Offense count: 4 +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. +Lint/DuplicateBranch: + Exclude: + - 'lib/puppet/provider/cs_primitive/pcs.rb' + - 'spec/spec_helper_acceptance.rb' + - 'spec/spec_helper_corosync.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +Lint/RedundantCopDisableDirective: + Exclude: + - 'lib/puppet/provider/cs_colocation/pcs.rb' + +# Offense count: 2 +# Cop supports --auto-correct. +# Configuration parameters: AllowedMethods. +# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal? +Lint/RedundantSafeNavigation: + Exclude: + - 'lib/puppet/provider/cs_primitive/crm.rb' + - 'lib/puppet/provider/cs_primitive/pcs.rb' + +# Offense count: 1 +# Cop supports --auto-correct. +Lint/RedundantStringCoercion: + Exclude: + - 'lib/puppet/provider/cs_rsc_defaults/pcs.rb' + +# Offense count: 2 +# Cop supports --auto-correct. +# Configuration parameters: AllowedMethods. +# AllowedMethods: present?, blank?, presence, try, try! +Lint/SafeNavigationConsistency: + Exclude: + - 'lib/puppet/provider/cs_primitive/crm.rb' + - 'lib/puppet/provider/cs_primitive/pcs.rb' + +# Offense count: 1 +# Configuration parameters: CheckForMethodsWithNoSideEffects. +Lint/Void: + Exclude: + - 'lib/puppet/type/cs_colocation.rb' + +# Offense count: 13 +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. +# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to +Naming/MethodParameterName: + Exclude: + - 'lib/puppet/provider/cs_colocation/pcs.rb' + - 'lib/puppet/provider/cs_primitive/crm.rb' + - 'lib/puppet/provider/cs_primitive/pcs.rb' + - 'lib/puppet/type/cs_commit.rb' + - 'lib/puppet/type/cs_group.rb' + - 'lib/puppet/type/cs_location.rb' + - 'lib/puppet/type/cs_primitive.rb' + - 'lib/puppet/type/cs_property.rb' + - 'lib/puppet/type/cs_shadow.rb' + - 'lib/puppet_x/voxpupuli/corosync/provider/cib_helper.rb' + +# Offense count: 1 +# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers. +# SupportedStyles: snake_case, normalcase, non_integer +# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339 +Naming/VariableNumber: + Exclude: + - 'lib/puppet_x/voxpupuli/corosync/provider/pcs.rb' + +# Offense count: 1 +RSpec/EmptyExampleGroup: + Exclude: + - 'spec/classes/corosync_qdevice_spec.rb' + +# Offense count: 1 +# Configuration parameters: AllowSubject. +RSpec/MultipleMemoizedHelpers: + Max: 10 + +# Offense count: 4 +RSpec/RepeatedExampleGroupBody: + Exclude: + - 'spec/acceptance/basic_spec.rb' + - 'spec/acceptance/corosync_class_spec.rb' + +# Offense count: 3 +# Cop supports --auto-correct. +Style/CaseLikeIf: + Exclude: + - 'lib/puppet/provider/cs_colocation/pcs.rb' + +# Offense count: 7 +# Configuration parameters: AllowedMethods. +# AllowedMethods: respond_to_missing? +Style/OptionalBooleanParameter: + Exclude: + - 'lib/puppet_x/voxpupuli/corosync/provider/cib_helper.rb' + - 'lib/puppet_x/voxpupuli/corosync/provider/crmsh.rb' + - 'lib/puppet_x/voxpupuli/corosync/provider/pcs.rb'