|
| 1 | +AllCops: |
| 2 | + TargetRubyVersion: 2.3 |
| 3 | + Exclude: |
| 4 | + - '.git/**/*' |
| 5 | + - '.github/**/*' |
| 6 | + - 'gemfiles/**/*' |
| 7 | + |
| 8 | +# Match existing layout |
| 9 | +Layout/DotPosition: |
| 10 | + EnforcedStyle: trailing |
| 11 | + |
| 12 | +# Rubocop cannot yet see beyond one line above or below, when aligning = |
| 13 | +Layout/ExtraSpacing: |
| 14 | + Enabled: false |
| 15 | + AllowForAlignment: true |
| 16 | + ForceEqualSignAlignment: true |
| 17 | + AutoCorrect: false |
| 18 | + |
| 19 | +# Pick one |
| 20 | +Layout/IndentHeredoc: |
| 21 | + EnforcedStyle: squiggly |
| 22 | + |
| 23 | +# Match existing layout |
| 24 | +Layout/MultilineMethodCallIndentation: |
| 25 | + EnforcedStyle: indented |
| 26 | + IndentationWidth: 2 |
| 27 | + |
| 28 | +# Rubocop cannot yet see beyond one line above or below, when aligning = |
| 29 | +Layout/SpaceAroundOperators: |
| 30 | + Enabled: false |
| 31 | + AllowForAlignment: true |
| 32 | + AutoCorrect: false |
| 33 | + |
| 34 | +# Match existing layout |
| 35 | +Layout/SpaceInsideHashLiteralBraces: |
| 36 | + EnforcedStyle: no_space |
| 37 | + EnforcedStyleForEmptyBraces: no_space |
| 38 | + |
| 39 | +# Files must end with a blank line |
| 40 | +Layout/TrailingBlankLines: |
| 41 | + EnforcedStyle: final_newline |
| 42 | + |
| 43 | +# TODO: Soften Limits for phase 1 only |
| 44 | +Metrics/AbcSize: |
| 45 | + Max: 40 |
| 46 | + |
| 47 | +# Support long block lengths for tests |
| 48 | +Metrics/BlockLength: |
| 49 | + Exclude: |
| 50 | + - 'test/**/*' |
| 51 | + |
| 52 | +# Soften limits |
| 53 | +Metrics/ClassLength: |
| 54 | + Max: 250 |
| 55 | + Exclude: |
| 56 | + - 'test/**/*' |
| 57 | + |
| 58 | +# TODO: Soften Limits for phase 1 only |
| 59 | +Metrics/CyclomaticComplexity: |
| 60 | + Max: 15 |
| 61 | + |
| 62 | +Metrics/LineLength: |
| 63 | + Max: 128 |
| 64 | + Exclude: |
| 65 | + - 'cli.rb' |
| 66 | + - 'test/**/*' |
| 67 | + |
| 68 | +# Soften limits |
| 69 | +Metrics/MethodLength: |
| 70 | + Max: 50 |
| 71 | + |
| 72 | +# Soften limits |
| 73 | +Metrics/ModuleLength: |
| 74 | + Max: 250 |
| 75 | + |
| 76 | +Metrics/ParameterLists: |
| 77 | + CountKeywordArgs: false |
| 78 | + |
| 79 | +# TODO: Soften Limits for phase 1 only |
| 80 | +Metrics/PerceivedComplexity: |
| 81 | + Max: 21 |
| 82 | + |
| 83 | +# Initialization Vector abbreviation |
| 84 | +Naming/UncommunicativeMethodParamName: |
| 85 | + AllowedNames: ['iv', '_', 'io', 'ap'] |
| 86 | + |
| 87 | +# Does not allow Symbols to load |
| 88 | +Security/YAMLLoad: |
| 89 | + AutoCorrect: false |
| 90 | + |
| 91 | +# Needed for testing DateTime |
| 92 | +Style/DateTime: |
| 93 | + Exclude: ['test/**/*'] |
| 94 | + |
| 95 | +# TODO: Soften Limits for phase 1 only |
| 96 | +Style/Documentation: |
| 97 | + Enabled: false |
| 98 | + |
| 99 | +# One line methods |
| 100 | +Style/EmptyMethod: |
| 101 | + Enabled: false |
| 102 | + |
| 103 | +# Ruby 3 compatibility feature |
| 104 | +Style/FrozenStringLiteralComment: |
| 105 | + Enabled: false |
| 106 | + |
| 107 | +Style/NumericPredicate: |
| 108 | + AutoCorrect: true |
| 109 | + |
0 commit comments