From bd9694bb143b9154153e4a631a51878c1fe34d48 Mon Sep 17 00:00:00 2001 From: Lukas Audzevicius Date: Tue, 22 Oct 2024 15:07:12 +0100 Subject: [PATCH] 4 --- .rubocop_todo.yml | 57 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 43 insertions(+), 14 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 68404e74..0396e89f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2024-01-22 14:59:34 UTC using RuboCop version 1.50.2. +# on 2024-10-22 14:07:05 UTC using RuboCop version 1.64.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 @@ -14,6 +14,21 @@ Gemspec/RequireMFA: Exclude: - 'puppet-lint.gemspec' +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyle, IndentationWidth. +# SupportedStyles: special_inside_parentheses, consistent, align_brackets +Layout/FirstArrayElementIndentation: + Exclude: + - 'spec/unit/puppet-lint/data_spec.rb' + +# Offense count: 1 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: AllowInHeredoc. +Layout/TrailingWhitespace: + Exclude: + - 'spec/unit/puppet-lint/data_spec.rb' + # Offense count: 4 # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. Lint/DuplicateBranch: @@ -34,12 +49,12 @@ Lint/MissingCopEnableDirective: - 'lib/puppet-lint/tasks/puppet-lint.rb' - 'spec/unit/puppet-lint/puppet-lint_spec.rb' -# Offense count: 58 +# Offense count: 60 # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. Metrics/AbcSize: Max: 142 -# Offense count: 35 +# Offense count: 36 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode. # AllowedMethods: refine Metrics/BlockLength: @@ -50,27 +65,27 @@ Metrics/BlockLength: Metrics/BlockNesting: Max: 5 -# Offense count: 8 +# Offense count: 7 # Configuration parameters: CountComments, CountAsOne. Metrics/ClassLength: Max: 387 -# Offense count: 33 +# Offense count: 34 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/CyclomaticComplexity: Max: 33 -# Offense count: 80 +# Offense count: 81 # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. Metrics/MethodLength: Max: 108 -# Offense count: 26 +# Offense count: 27 # Configuration parameters: AllowedMethods, AllowedPatterns. Metrics/PerceivedComplexity: Max: 31 -# Offense count: 186 +# Offense count: 191 # Configuration parameters: ForbiddenDelimiters. # ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) Naming/HeredocDelimiterNaming: @@ -92,23 +107,23 @@ Performance/CollectionLiteralInLoop: - 'lib/puppet-lint/plugins/check_resources/ensure_first_param.rb' - 'lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb' -# Offense count: 409 +# Offense count: 416 # Configuration parameters: Prefixes, AllowedPatterns. # Prefixes: when, with, without RSpec/ContextWording: Enabled: false -# Offense count: 41 +# Offense count: 42 # Configuration parameters: IgnoredMetadata. RSpec/DescribeClass: Enabled: false -# Offense count: 50 +# Offense count: 51 # Configuration parameters: CountAsOne. RSpec/ExampleLength: Max: 148 -# Offense count: 119 +# Offense count: 120 RSpec/MultipleExpectations: Max: 137 @@ -144,14 +159,20 @@ RSpec/SpecFilePathFormat: - 'spec/unit/puppet-lint/lexer_spec.rb' - 'spec/unit/puppet-lint/puppet-lint_spec.rb' -# Offense count: 106 +# Offense count: 3 +# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames. +RSpec/VerifiedDoubles: + Exclude: + - 'spec/unit/puppet-lint/data_spec.rb' + +# Offense count: 107 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Enabled: false -# Offense count: 9 +# Offense count: 10 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: Mode. Style/StringConcatenation: @@ -160,3 +181,11 @@ Style/StringConcatenation: - 'lib/puppet-lint/plugins.rb' - 'lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb' - 'spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb' + +# Offense count: 2 +# This cop supports safe autocorrection (--autocorrect). +# Configuration parameters: EnforcedStyleForMultiline. +# SupportedStylesForMultiline: comma, consistent_comma, no_comma +Style/TrailingCommaInArrayLiteral: + Exclude: + - 'spec/unit/puppet-lint/data_spec.rb'