|
| 1 | +# This configuration was generated by |
| 2 | +# `rubocop --auto-gen-config` |
| 3 | +# on 2023-04-04 08:44:46 UTC using RuboCop version 1.48.1. |
| 4 | +# The point is for the user to remove these configuration records |
| 5 | +# one by one as the offenses are removed from the code base. |
| 6 | +# Note that changes in the inspected code, or installation of new |
| 7 | +# versions of RuboCop, may require this file to be generated again. |
| 8 | + |
| 9 | +# Offense count: 1 |
| 10 | +# This cop supports safe autocorrection (--autocorrect). |
| 11 | +# Configuration parameters: Severity, Include. |
| 12 | +# Include: **/*.gemspec |
| 13 | +Gemspec/RequireMFA: |
| 14 | + Exclude: |
| 15 | + - 'puppet-lint.gemspec' |
| 16 | + |
| 17 | +# Offense count: 4 |
| 18 | +# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches. |
| 19 | +Lint/DuplicateBranch: |
| 20 | + Exclude: |
| 21 | + - 'lib/puppet-lint/lexer/string_slurper.rb' |
| 22 | + - 'lib/puppet-lint/lexer/token.rb' |
| 23 | + |
| 24 | +# Offense count: 9 |
| 25 | +# Configuration parameters: MaximumRangeSize. |
| 26 | +Lint/MissingCopEnableDirective: |
| 27 | + Exclude: |
| 28 | + - 'lib/puppet-lint.rb' |
| 29 | + - 'lib/puppet-lint/lexer.rb' |
| 30 | + - 'lib/puppet-lint/lexer/string_slurper.rb' |
| 31 | + - 'lib/puppet-lint/lexer/token.rb' |
| 32 | + - 'lib/puppet-lint/report/codeclimate.rb' |
| 33 | + - 'lib/puppet-lint/report/github.rb' |
| 34 | + - 'lib/puppet-lint/tasks/puppet-lint.rb' |
| 35 | + - 'spec/unit/puppet-lint/puppet-lint_spec.rb' |
| 36 | + |
| 37 | +# Offense count: 58 |
| 38 | +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. |
| 39 | +Metrics/AbcSize: |
| 40 | + Max: 142 |
| 41 | + |
| 42 | +# Offense count: 34 |
| 43 | +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode. |
| 44 | +# AllowedMethods: refine |
| 45 | +Metrics/BlockLength: |
| 46 | + Max: 104 |
| 47 | + |
| 48 | +# Offense count: 2 |
| 49 | +# Configuration parameters: CountBlocks. |
| 50 | +Metrics/BlockNesting: |
| 51 | + Max: 5 |
| 52 | + |
| 53 | +# Offense count: 7 |
| 54 | +# Configuration parameters: CountComments, CountAsOne. |
| 55 | +Metrics/ClassLength: |
| 56 | + Max: 387 |
| 57 | + |
| 58 | +# Offense count: 33 |
| 59 | +# Configuration parameters: AllowedMethods, AllowedPatterns. |
| 60 | +Metrics/CyclomaticComplexity: |
| 61 | + Max: 33 |
| 62 | + |
| 63 | +# Offense count: 80 |
| 64 | +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. |
| 65 | +Metrics/MethodLength: |
| 66 | + Max: 108 |
| 67 | + |
| 68 | +# Offense count: 26 |
| 69 | +# Configuration parameters: AllowedMethods, AllowedPatterns. |
| 70 | +Metrics/PerceivedComplexity: |
| 71 | + Max: 31 |
| 72 | + |
| 73 | +# Offense count: 182 |
| 74 | +# Configuration parameters: ForbiddenDelimiters. |
| 75 | +# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$)) |
| 76 | +Naming/HeredocDelimiterNaming: |
| 77 | + Enabled: false |
| 78 | + |
| 79 | +# Offense count: 2 |
| 80 | +# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. |
| 81 | +# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to |
| 82 | +Naming/MethodParameterName: |
| 83 | + Exclude: |
| 84 | + - 'lib/puppet-lint/monkeypatches.rb' |
| 85 | + |
| 86 | +# Offense count: 7 |
| 87 | +# Configuration parameters: MinSize. |
| 88 | +Performance/CollectionLiteralInLoop: |
| 89 | + Exclude: |
| 90 | + - 'lib/puppet-lint/bin.rb' |
| 91 | + - 'lib/puppet-lint/data.rb' |
| 92 | + - 'lib/puppet-lint/plugins/check_resources/ensure_first_param.rb' |
| 93 | + - 'lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb' |
| 94 | + |
| 95 | +# Offense count: 406 |
| 96 | +# Configuration parameters: Prefixes, AllowedPatterns. |
| 97 | +# Prefixes: when, with, without |
| 98 | +RSpec/ContextWording: |
| 99 | + Enabled: false |
| 100 | + |
| 101 | +# Offense count: 41 |
| 102 | +# Configuration parameters: IgnoredMetadata. |
| 103 | +RSpec/DescribeClass: |
| 104 | + Enabled: false |
| 105 | + |
| 106 | +# Offense count: 50 |
| 107 | +# Configuration parameters: CountAsOne. |
| 108 | +RSpec/ExampleLength: |
| 109 | + Max: 148 |
| 110 | + |
| 111 | +# Offense count: 8 |
| 112 | +# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly. |
| 113 | +# Include: **/*_spec*rb*, **/spec/**/* |
| 114 | +RSpec/FilePath: |
| 115 | + Exclude: |
| 116 | + - 'spec/unit/puppet-lint/bin_spec.rb' |
| 117 | + - 'spec/unit/puppet-lint/checks_spec.rb' |
| 118 | + - 'spec/unit/puppet-lint/configuration_spec.rb' |
| 119 | + - 'spec/unit/puppet-lint/data_spec.rb' |
| 120 | + - 'spec/unit/puppet-lint/lexer/string_slurper_spec.rb' |
| 121 | + - 'spec/unit/puppet-lint/lexer/token_spec.rb' |
| 122 | + - 'spec/unit/puppet-lint/lexer_spec.rb' |
| 123 | + - 'spec/unit/puppet-lint/puppet-lint_spec.rb' |
| 124 | + |
| 125 | +# Offense count: 138 |
| 126 | +RSpec/MultipleExpectations: |
| 127 | + Max: 137 |
| 128 | + |
| 129 | +# Offense count: 3 |
| 130 | +# Configuration parameters: AllowSubject. |
| 131 | +RSpec/MultipleMemoizedHelpers: |
| 132 | + Max: 13 |
| 133 | + |
| 134 | +# Offense count: 52 |
| 135 | +# Configuration parameters: AllowedGroups. |
| 136 | +RSpec/NestedGroups: |
| 137 | + Max: 5 |
| 138 | + |
| 139 | +# Offense count: 8 |
| 140 | +RSpec/RepeatedExampleGroupDescription: |
| 141 | + Exclude: |
| 142 | + - 'spec/unit/puppet-lint/plugins/check_resources/file_mode_spec.rb' |
| 143 | + - 'spec/unit/puppet-lint/plugins/check_resources/unquoted_file_mode_spec.rb' |
| 144 | + - 'spec/unit/puppet-lint/plugins/legacy_facts/legacy_facts_spec.rb' |
| 145 | + |
| 146 | +# Offense count: 106 |
| 147 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 148 | +# Configuration parameters: EnforcedStyle. |
| 149 | +# SupportedStyles: always, always_true, never |
| 150 | +Style/FrozenStringLiteralComment: |
| 151 | + Enabled: false |
| 152 | + |
| 153 | +# Offense count: 9 |
| 154 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 155 | +# Configuration parameters: Mode. |
| 156 | +Style/StringConcatenation: |
| 157 | + Exclude: |
| 158 | + - 'lib/puppet-lint/bin.rb' |
| 159 | + - 'lib/puppet-lint/plugins.rb' |
| 160 | + - 'lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb' |
| 161 | + - 'spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb' |
0 commit comments