|
| 1 | +AllCops: |
| 2 | + NewCops: disable |
| 3 | + |
| 4 | +Gemspec/RequiredRubyVersion: |
| 5 | + Enabled: false |
| 6 | + |
| 7 | +Style/StringLiterals: |
| 8 | + EnforcedStyle: single_quotes |
| 9 | + Enabled: true |
| 10 | + |
| 11 | +# kind_of? is a good way to check a type |
| 12 | +Style/ClassCheck: |
| 13 | + EnforcedStyle: kind_of? |
| 14 | + |
| 15 | +# It's better to be more explicit about the type |
| 16 | +Layout/AccessModifierIndentation: |
| 17 | + Enabled: false |
| 18 | + |
| 19 | +# specs sometimes have useless assignments, which is fine |
| 20 | +Lint/UselessAssignment: |
| 21 | + Exclude: |
| 22 | + - '**/spec/**/*' |
| 23 | + |
| 24 | +# We could potentially enable the 2 below: |
| 25 | +Layout/FirstHashElementIndentation: |
| 26 | + Enabled: false |
| 27 | + |
| 28 | +Layout/HashAlignment: |
| 29 | + Enabled: false |
| 30 | + |
| 31 | +# HoundCI doesn't like this rule |
| 32 | +Layout/DotPosition: |
| 33 | + Enabled: false |
| 34 | + |
| 35 | +# We allow !! as it's an easy way to convert ot boolean |
| 36 | +Style/DoubleNegation: |
| 37 | + Enabled: false |
| 38 | + |
| 39 | +# Cop supports --auto-correct. |
| 40 | +Lint/UnusedBlockArgument: |
| 41 | + Enabled: false |
| 42 | + |
| 43 | +# We want to allow class Fastlane::Class |
| 44 | +Style/ClassAndModuleChildren: |
| 45 | + Enabled: false |
| 46 | + |
| 47 | +Metrics/AbcSize: |
| 48 | + Max: 60 |
| 49 | + |
| 50 | +# The %w might be confusing for new users |
| 51 | +Style/WordArray: |
| 52 | + MinSize: 19 |
| 53 | + |
| 54 | +# raise and fail are both okay |
| 55 | +Style/SignalException: |
| 56 | + Enabled: false |
| 57 | + |
| 58 | +# Better too much 'return' than one missing |
| 59 | +Style/RedundantReturn: |
| 60 | + Enabled: false |
| 61 | + |
| 62 | +# Having if in the same line might not always be good |
| 63 | +Style/IfUnlessModifier: |
| 64 | + Enabled: false |
| 65 | + |
| 66 | +# and and or is okay |
| 67 | +Style/AndOr: |
| 68 | + Enabled: false |
| 69 | + |
| 70 | +# Configuration parameters: CountComments. |
| 71 | +Metrics/ClassLength: |
| 72 | + Max: 350 |
| 73 | + |
| 74 | +Metrics/CyclomaticComplexity: |
| 75 | + Max: 17 |
| 76 | + |
| 77 | +# Configuration parameters: AllowURI, URISchemes. |
| 78 | +Layout/LineLength: |
| 79 | + Max: 370 |
| 80 | + |
| 81 | +# Configuration parameters: CountKeywordArgs. |
| 82 | +Metrics/ParameterLists: |
| 83 | + Max: 10 |
| 84 | + |
| 85 | +Metrics/PerceivedComplexity: |
| 86 | + Max: 18 |
| 87 | + |
| 88 | +# Sometimes it's easier to read without guards |
| 89 | +Style/GuardClause: |
| 90 | + Enabled: false |
| 91 | + |
| 92 | +# something = if something_else |
| 93 | +# that's confusing |
| 94 | +Style/ConditionalAssignment: |
| 95 | + Enabled: false |
| 96 | + |
| 97 | +# Better to have too much self than missing a self |
| 98 | +Style/RedundantSelf: |
| 99 | + Enabled: false |
| 100 | + |
| 101 | +Metrics/MethodLength: |
| 102 | + Max: 60 |
| 103 | + |
| 104 | +# We're not there yet |
| 105 | +Style/Documentation: |
| 106 | + Enabled: false |
| 107 | + |
| 108 | +# Adds complexity |
| 109 | +Style/IfInsideElse: |
| 110 | + Enabled: false |
| 111 | + |
| 112 | +# danger specific |
| 113 | + |
| 114 | +Style/BlockComments: |
| 115 | + Enabled: false |
| 116 | + |
| 117 | +Layout/MultilineMethodCallIndentation: |
| 118 | + EnforcedStyle: indented |
| 119 | + |
| 120 | +# FIXME: 25 |
| 121 | +Metrics/BlockLength: |
| 122 | + Max: 345 |
| 123 | + Exclude: |
| 124 | + - "**/*_spec.rb" |
| 125 | + |
| 126 | +Style/MixinGrouping: |
| 127 | + Enabled: false |
| 128 | + |
| 129 | +Naming/FileName: |
| 130 | + Enabled: false |
| 131 | + |
| 132 | +Layout/HeredocIndentation: |
| 133 | + Enabled: false |
| 134 | + |
| 135 | +Style/SpecialGlobalVars: |
| 136 | + Enabled: false |
| 137 | + |
| 138 | +Security/YAMLLoad: |
| 139 | + Enabled: false |
0 commit comments