|
| 1 | +--- |
| 2 | +require: |
| 3 | + - rubocop-rspec |
| 4 | + - rubocop-i18n |
| 5 | +AllCops: |
| 6 | + TargetRubyVersion: '2.1' |
| 7 | + Include: |
| 8 | + - "./**/*.rb" |
| 9 | + Exclude: |
| 10 | + - bin/* |
| 11 | + - ".vendor/**/*" |
| 12 | + - Gemfile |
| 13 | + - Rakefile |
| 14 | + - pkg/**/* |
| 15 | + - spec/fixtures/**/* |
| 16 | + - vendor/**/* |
| 17 | +Metrics/LineLength: |
| 18 | + Description: People have wide screens, use them. |
| 19 | + Max: 200 |
| 20 | + Enabled: false |
| 21 | +RSpec/BeforeAfterAll: |
| 22 | + Description: Beware of using after(:all) as it may cause state to leak between tests. |
| 23 | + A necessary evil in acceptance testing. |
| 24 | + Exclude: |
| 25 | + - spec/acceptance/**/*.rb |
| 26 | +RSpec/HookArgument: |
| 27 | + Description: Prefer explicit :each argument, matching existing module's style |
| 28 | + EnforcedStyle: each |
| 29 | +Style/BlockDelimiters: |
| 30 | + Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to |
| 31 | + be consistent then. |
| 32 | + EnforcedStyle: braces_for_chaining |
| 33 | +Style/ClassAndModuleChildren: |
| 34 | + Description: Compact style reduces the required amount of indentation. |
| 35 | + EnforcedStyle: compact |
| 36 | +Style/EmptyElse: |
| 37 | + Description: Enforce against empty else clauses, but allow `nil` for clarity. |
| 38 | + EnforcedStyle: empty |
| 39 | +Style/FormatString: |
| 40 | + Description: Following the main puppet project's style, prefer the % format format. |
| 41 | + EnforcedStyle: percent |
| 42 | +Style/FormatStringToken: |
| 43 | + Description: Following the main puppet project's style, prefer the simpler template |
| 44 | + tokens over annotated ones. |
| 45 | + EnforcedStyle: template |
| 46 | +Style/Lambda: |
| 47 | + Description: Prefer the keyword for easier discoverability. |
| 48 | + EnforcedStyle: literal |
| 49 | + Enabled: true |
| 50 | +Style/RegexpLiteral: |
| 51 | + Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168 |
| 52 | + EnforcedStyle: percent_r |
| 53 | +Style/TernaryParentheses: |
| 54 | + Description: Checks for use of parentheses around ternary conditions. Enforce parentheses |
| 55 | + on complex expressions for better readability, but seriously consider breaking |
| 56 | + it up. |
| 57 | + EnforcedStyle: require_parentheses_when_complex |
| 58 | +Style/TrailingCommaInArguments: |
| 59 | + Description: Prefer always trailing comma on multiline argument lists. This makes |
| 60 | + diffs, and re-ordering nicer. |
| 61 | + EnforcedStyleForMultiline: comma |
| 62 | +Style/SymbolArray: |
| 63 | + Description: Using percent style obscures symbolic intent of array's contents. |
| 64 | + EnforcedStyle: brackets |
| 65 | +Style/CollectionMethods: |
| 66 | + Enabled: true |
| 67 | +Style/MethodCalledOnDoEndBlock: |
| 68 | + Enabled: true |
| 69 | +Style/StringMethods: |
| 70 | + Enabled: true |
| 71 | +Metrics/AbcSize: |
| 72 | + Enabled: false |
| 73 | +Metrics/BlockLength: |
| 74 | + Enabled: false |
| 75 | +Metrics/LineLength: |
| 76 | + Enabled: false |
| 77 | +Metrics/ClassLength: |
| 78 | + Enabled: false |
| 79 | +Metrics/CyclomaticComplexity: |
| 80 | + Enabled: false |
| 81 | +Metrics/MethodLength: |
| 82 | + Enabled: false |
| 83 | +Metrics/ModuleLength: |
| 84 | + Enabled: false |
| 85 | +Metrics/ParameterLists: |
| 86 | + Enabled: false |
| 87 | +Metrics/PerceivedComplexity: |
| 88 | + Enabled: false |
| 89 | +RSpec/DescribeClass: |
| 90 | + Enabled: false |
| 91 | +RSpec/MessageExpectation: |
| 92 | + Enabled: false |
| 93 | +Style/AsciiComments: |
| 94 | + Enabled: false |
| 95 | +Style/IfUnlessModifier: |
| 96 | + Enabled: false |
| 97 | +Style/SymbolProc: |
| 98 | + Enabled: false |
| 99 | +Style/HashSyntax: |
| 100 | + UseHashRocketsWithSymbolValues: true |
0 commit comments