|
| 1 | +# The behavior of RuboCop can be controlled via the .rubocop.yml |
| 2 | +# configuration file. It makes it possible to enable/disable |
| 3 | +# certain cops (checks) and to alter their behavior if they accept |
| 4 | +# any parameters. The file can be placed either in your home |
| 5 | +# directory or in some project directory. |
| 6 | +# |
| 7 | +# RuboCop will start looking for the configuration file in the directory |
| 8 | +# where the inspected file is and continue its way up to the root directory. |
| 9 | +# |
| 10 | +# See https://docs.rubocop.org/rubocop/configuration |
| 11 | +AllCops: |
| 12 | + NewCops: enable |
| 13 | + Exclude: |
| 14 | + - vendor/bundle/**/** |
| 15 | + TargetRubyVersion: 2.6 |
| 16 | + |
| 17 | +Metrics/ParameterLists: |
| 18 | + Enabled: false |
| 19 | + |
| 20 | +# This cop is annoying with typed configuration |
| 21 | +Style/TrivialAccessors: |
| 22 | + Enabled: false |
| 23 | + |
| 24 | +# This rubocop is annoying when we use interfaces a lot |
| 25 | +Lint/UnusedMethodArgument: |
| 26 | + Enabled: false |
| 27 | + |
| 28 | +Gemspec/RequireMFA: |
| 29 | + Enabled: false |
| 30 | + |
| 31 | +Lint/DuplicateBranch: |
| 32 | + Enabled: false |
| 33 | + |
| 34 | +# If is sometimes easier to think about than unless sometimes |
| 35 | +Style/NegatedIf: |
| 36 | + Enabled: false |
| 37 | + |
| 38 | +# Disabling for now until it's clearer why we want this |
| 39 | +Style/FrozenStringLiteralComment: |
| 40 | + Enabled: false |
| 41 | + |
| 42 | +# It's nice to be able to read the condition first before reading the code within the condition |
| 43 | +Style/GuardClause: |
| 44 | + Enabled: false |
| 45 | + |
| 46 | +# |
| 47 | +# Leaving length metrics to human judgment for now |
| 48 | +# |
| 49 | +Metrics/ModuleLength: |
| 50 | + Enabled: false |
| 51 | + |
| 52 | +Layout/LineLength: |
| 53 | + Enabled: false |
| 54 | + |
| 55 | +Metrics/BlockLength: |
| 56 | + Enabled: false |
| 57 | + |
| 58 | +Metrics/MethodLength: |
| 59 | + Enabled: false |
| 60 | + |
| 61 | +Metrics/AbcSize: |
| 62 | + Enabled: false |
| 63 | + |
| 64 | +Metrics/ClassLength: |
| 65 | + Enabled: false |
| 66 | + |
| 67 | +# This doesn't feel useful |
| 68 | +Metrics/CyclomaticComplexity: |
| 69 | + Enabled: false |
| 70 | + |
| 71 | +# This doesn't feel useful |
| 72 | +Metrics/PerceivedComplexity: |
| 73 | + Enabled: false |
| 74 | + |
| 75 | +# It's nice to be able to read the condition first before reading the code within the condition |
| 76 | +Style/IfUnlessModifier: |
| 77 | + Enabled: false |
| 78 | + |
| 79 | +# This leads to code that is not very readable at times (very long lines) |
| 80 | +Style/ConditionalAssignment: |
| 81 | + Enabled: false |
| 82 | + |
| 83 | +# For now, we prefer to lean on clean method signatures as documentation. We may change this later. |
| 84 | +Style/Documentation: |
| 85 | + Enabled: false |
| 86 | + |
| 87 | +# Sometimes we leave comments in empty else statements intentionally |
| 88 | +Style/EmptyElse: |
| 89 | + Enabled: false |
| 90 | + |
| 91 | +# Sometimes we want to more explicitly list out a condition |
| 92 | +Style/RedundantCondition: |
| 93 | + Enabled: false |
| 94 | + |
| 95 | +# This leads to code that is not very readable at times (very long lines) |
| 96 | +Layout/MultilineMethodCallIndentation: |
| 97 | + Enabled: false |
| 98 | + |
| 99 | +# Blocks across lines are okay sometimes |
| 100 | +Style/BlockDelimiters: |
| 101 | + Enabled: false |
| 102 | + |
| 103 | +# Sometimes we like methods like `get_packages` |
| 104 | +Naming/AccessorMethodName: |
| 105 | + Enabled: false |
| 106 | + |
| 107 | +# This leads to code that is not very readable at times (very long lines) |
| 108 | +Layout/FirstArgumentIndentation: |
| 109 | + Enabled: false |
| 110 | + |
| 111 | +# This leads to code that is not very readable at times (very long lines) |
| 112 | +Layout/ArgumentAlignment: |
| 113 | + Enabled: false |
| 114 | + |
| 115 | +Style/AccessorGrouping: |
| 116 | + Enabled: false |
| 117 | + |
| 118 | +Style/HashSyntax: |
| 119 | + Enabled: false |
| 120 | + |
| 121 | +Gemspec/DevelopmentDependencies: |
| 122 | + Enabled: true |
| 123 | + EnforcedStyle: gemspec |
0 commit comments