|
| 1 | +#inherit_from: |
| 2 | +# - .rubocop_todo.yml |
| 3 | + |
| 4 | +AllCops: |
| 5 | + TargetRubyVersion: 2.4 |
| 6 | + Exclude: |
| 7 | + - 'vendor/**/*' # need to reset this apparently |
| 8 | + - 'lib/yard/parser/ruby/legacy/ruby_lex.rb' # old file, don't touch |
| 9 | +Metrics: |
| 10 | + Enabled: false |
| 11 | +Style/Semicolon: |
| 12 | + AllowAsExpressionSeparator: true |
| 13 | +Style/Documentation: |
| 14 | + Enabled: false |
| 15 | +Style/ClassVars: |
| 16 | + Enabled: false |
| 17 | +Style/HashSyntax: |
| 18 | + EnforcedStyle: hash_rockets |
| 19 | +Style/SpaceInsideHashLiteralBraces: |
| 20 | + EnforcedStyle: no_space |
| 21 | +Style/SpaceInsideBlockBraces: |
| 22 | + SpaceBeforeBlockParameters: false |
| 23 | +Style/MultilineMethodCallIndentation: |
| 24 | + EnforcedStyle: indented |
| 25 | +Style/NumericPredicate: # ruby 1.8/1.9 do not have positive?/negative? |
| 26 | + EnforcedStyle: comparison |
| 27 | +Style/MultilineMethodCallIndentation: |
| 28 | + EnforcedStyle: indented |
| 29 | +Style/DotPosition: |
| 30 | + EnforcedStyle: trailing |
| 31 | +Style/FormatString: |
| 32 | + EnforcedStyle: percent |
| 33 | +Style/IndentArray: |
| 34 | + EnforcedStyle: consistent |
| 35 | +Style/IndentHash: |
| 36 | + EnforcedStyle: consistent |
| 37 | + |
| 38 | +# Disable these until we know what to do with them |
| 39 | +Style/SafeNavigation: |
| 40 | + Enabled: false # not supported in 1.8...2.1 |
| 41 | +Style/GuardClause: # does not provide much value |
| 42 | + Enabled: false |
| 43 | +Style/VariableNumber: |
| 44 | + Enabled: false |
| 45 | +Style/AccessorMethodName: # this creates breaking changes in the API |
| 46 | + Enabled: false |
| 47 | +Style/PredicateName: # this creates breaking changes in the API |
| 48 | + Enabled: false |
| 49 | +Style/MethodMissing: # this doesn't exist in 1.8/1.9 |
| 50 | + Enabled: false |
| 51 | +Style/Lambda: # not supported in 1.8 |
| 52 | + Enabled: false |
| 53 | +Style/EachWithObject: # not supported in 1.8 |
| 54 | + Enabled: false |
| 55 | +Style/AlignParameters: # does not work correctly with subsequent block |
| 56 | + Enabled: false |
| 57 | +Style/AlignArray: # does not support indentation |
| 58 | + Enabled: false |
| 59 | +Style/AlignHash: # does not support indentation |
| 60 | + Enabled: false |
| 61 | +Style/MultilineTernaryOperator: |
| 62 | + Enabled: false |
| 63 | +Style/ClassAndModuleChildren: |
| 64 | + Enabled: false |
| 65 | +Style/EmptyLineBetweenDefs: |
| 66 | + AllowAdjacentOneLineDefs: true |
| 67 | +Style/SingleLineMethods: |
| 68 | + Enabled: false |
| 69 | +Style/SingleLineBlockParams: |
| 70 | + Enabled: false |
| 71 | +Style/NestedTernaryOperator: |
| 72 | + Enabled: false |
| 73 | +Style/MutableConstant: |
| 74 | + Enabled: false |
| 75 | +Style/WhenThen: |
| 76 | + Enabled: false |
| 77 | +Style/StringLiterals: |
| 78 | + Enabled: false |
| 79 | +Style/StringLiteralsInInterpolation: |
| 80 | + Enabled: false |
| 81 | +Style/PerlBackrefs: |
| 82 | + Enabled: false |
| 83 | +Style/BlockComments: |
| 84 | + Exclude: |
| 85 | + - benchmarks/*.rb |
| 86 | +Style/CaseEquality: |
| 87 | + Enabled: false |
| 88 | +Style/WordArray: |
| 89 | + Enabled: false |
| 90 | +Style/GlobalVars: |
| 91 | + Exclude: |
| 92 | + - benchmarks/**/*.rb |
| 93 | + - spec/**/*.rb |
| 94 | +Lint/UnneededSplatExpansion: |
| 95 | + Enabled: false |
| 96 | +Lint/Eval: |
| 97 | + Exclude: |
| 98 | + - benchmarks/**/*.rb |
| 99 | +- spec/**/*.rb |
0 commit comments