|
| 1 | +--- |
| 2 | +require: |
| 3 | +- rubocop-rspec |
| 4 | +- rubocop-i18n |
| 5 | +AllCops: |
| 6 | + DisplayCopNames: true |
| 7 | + TargetRubyVersion: '2.6' |
| 8 | + Include: |
| 9 | + - "**/*.rb" |
| 10 | + Exclude: |
| 11 | + - bin/* |
| 12 | + - ".vendor/**/*" |
| 13 | + - "**/Gemfile" |
| 14 | + - "**/Rakefile" |
| 15 | + - pkg/**/* |
| 16 | + - spec/fixtures/**/* |
| 17 | + - vendor/**/* |
| 18 | + - "**/Puppetfile" |
| 19 | + - "**/Vagrantfile" |
| 20 | + - "**/Guardfile" |
| 21 | +Layout/EmptyLinesAroundAttributeAccessor: |
| 22 | + Enabled: true |
| 23 | +Layout/LineLength: |
| 24 | + Description: People have wide screens, use them. |
| 25 | + Max: 200 |
| 26 | +Layout/SpaceAroundMethodCallOperator: |
| 27 | + Enabled: true |
| 28 | +Lint/RaiseException: |
| 29 | + Enabled: true |
| 30 | +Lint/StructNewOverride: |
| 31 | + Enabled: false |
| 32 | +I18n/GetText: |
| 33 | + Enabled: false |
| 34 | +I18n/GetText/DecorateString: |
| 35 | + Description: We don't want to decorate test output. |
| 36 | + Exclude: |
| 37 | + - spec/**/* |
| 38 | + Enabled: false |
| 39 | +Naming/AccessorMethodName: |
| 40 | + Exclude: |
| 41 | + - spec/**/* |
| 42 | +RSpec/BeforeAfterAll: |
| 43 | + Description: Beware of using after(:all) as it may cause state to leak between tests. |
| 44 | + A necessary evil in acceptance testing. |
| 45 | + Exclude: |
| 46 | + - spec/acceptance/**/*.rb |
| 47 | +RSpec/ExpectInHook: |
| 48 | + Exclude: |
| 49 | + - spec/unit/**/*.rb |
| 50 | +RSpec/HookArgument: |
| 51 | + Description: Prefer explicit :each argument, matching existing module's style |
| 52 | + EnforcedStyle: each |
| 53 | +RSpec/NamedSubject: |
| 54 | + Exclude: |
| 55 | + - spec/classes/**/* |
| 56 | + - spec/defines/**/* |
| 57 | +Style/BlockDelimiters: |
| 58 | + Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to |
| 59 | + be consistent then. |
| 60 | + EnforcedStyle: braces_for_chaining |
| 61 | +Style/ClassAndModuleChildren: |
| 62 | + Description: Compact style reduces the required amount of indentation. |
| 63 | + EnforcedStyle: compact |
| 64 | +Style/EmptyElse: |
| 65 | + Description: Enforce against empty else clauses, but allow `nil` for clarity. |
| 66 | + EnforcedStyle: empty |
| 67 | +Style/ExponentialNotation: |
| 68 | + Enabled: true |
| 69 | +Style/FormatString: |
| 70 | + Description: Following the main puppet project's style, prefer the % format format. |
| 71 | + EnforcedStyle: percent |
| 72 | +Style/FormatStringToken: |
| 73 | + Description: Following the main puppet project's style, prefer the simpler template |
| 74 | + tokens over annotated ones. |
| 75 | + EnforcedStyle: template |
| 76 | +Style/HashEachMethods: |
| 77 | + Enabled: true |
| 78 | +Style/HashSyntax: |
| 79 | + Enabled: false |
| 80 | +Style/HashTransformKeys: |
| 81 | + Enabled: false |
| 82 | +Style/HashTransformValues: |
| 83 | + Enabled: true |
| 84 | +Style/Lambda: |
| 85 | + Description: Prefer the keyword for easier discoverability. |
| 86 | + EnforcedStyle: literal |
| 87 | +Style/MixinUsage: |
| 88 | + Exclude: |
| 89 | + - spec/**/* |
| 90 | +Style/RedundantBegin: |
| 91 | + Enabled: false |
| 92 | +Style/RegexpLiteral: |
| 93 | + Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168 |
| 94 | + EnforcedStyle: percent_r |
| 95 | +Style/TernaryParentheses: |
| 96 | + Description: Checks for use of parentheses around ternary conditions. Enforce parentheses |
| 97 | + on complex expressions for better readability, but seriously consider breaking |
| 98 | + it up. |
| 99 | + EnforcedStyle: require_parentheses_when_complex |
| 100 | +Style/TrailingCommaInArguments: |
| 101 | + Description: Prefer always trailing comma on multiline argument lists. This makes |
| 102 | + diffs, and re-ordering nicer. |
| 103 | + EnforcedStyleForMultiline: comma |
| 104 | +Style/TrailingCommaInArrayLiteral: |
| 105 | + Description: Prefer always trailing comma on multiline literals. This makes diffs, |
| 106 | + and re-ordering nicer. |
| 107 | + EnforcedStyleForMultiline: comma |
| 108 | +Style/SlicingWithRange: |
| 109 | + Enabled: true |
| 110 | +Style/SymbolArray: |
| 111 | + Description: Using percent style obscures symbolic intent of array's contents. |
| 112 | + EnforcedStyle: brackets |
| 113 | +RSpec/MessageSpies: |
| 114 | + EnforcedStyle: receive |
| 115 | +Style/Documentation: |
| 116 | + Exclude: |
| 117 | + - lib/puppet/parser/functions/**/* |
| 118 | + - spec/**/* |
| 119 | +Style/WordArray: |
| 120 | + EnforcedStyle: brackets |
| 121 | +Style/CollectionMethods: |
| 122 | + Enabled: true |
| 123 | +Style/MethodCalledOnDoEndBlock: |
| 124 | + Enabled: true |
| 125 | +Style/StringMethods: |
| 126 | + Enabled: true |
| 127 | +I18n/GetText/DecorateFunctionMessage: |
| 128 | + Enabled: false |
| 129 | +I18n/GetText/DecorateStringFormattingUsingInterpolation: |
| 130 | + Enabled: false |
| 131 | +I18n/GetText/DecorateStringFormattingUsingPercent: |
| 132 | + Enabled: false |
| 133 | +Layout/EndOfLine: |
| 134 | + Enabled: false |
| 135 | +Layout/HeredocIndentation: |
| 136 | + Enabled: false |
| 137 | +Metrics/AbcSize: |
| 138 | + Enabled: false |
| 139 | +Metrics/BlockLength: |
| 140 | + Enabled: false |
| 141 | +Metrics/ClassLength: |
| 142 | + Enabled: false |
| 143 | +Metrics/CyclomaticComplexity: |
| 144 | + Enabled: false |
| 145 | +Metrics/MethodLength: |
| 146 | + Enabled: false |
| 147 | +Metrics/ModuleLength: |
| 148 | + Enabled: false |
| 149 | +Metrics/ParameterLists: |
| 150 | + Enabled: false |
| 151 | +Metrics/PerceivedComplexity: |
| 152 | + Enabled: false |
| 153 | +RSpec/DescribeClass: |
| 154 | + Enabled: false |
| 155 | +RSpec/ExampleLength: |
| 156 | + Enabled: false |
| 157 | +RSpec/MessageExpectation: |
| 158 | + Enabled: false |
| 159 | +RSpec/MultipleExpectations: |
| 160 | + Enabled: false |
| 161 | +RSpec/MultipleMemoizedHelpers: |
| 162 | + Enabled: false |
| 163 | +RSpec/NestedGroups: |
| 164 | + Enabled: false |
| 165 | +Style/AsciiComments: |
| 166 | + Enabled: false |
| 167 | +Style/IfUnlessModifier: |
| 168 | + Enabled: false |
| 169 | +Style/SymbolProc: |
| 170 | + Enabled: false |
0 commit comments