inherit_from: - .rubocop_todo.yml AllCops: Exclude: - tmp/**/* - lib/bundler/vendor/**/* DisplayCopNames: true # Lint # They are idiomatic Lint/AssignmentInCondition: Enabled: false Lint/EndAlignment: AlignWith: variable # Style Style/AccessModifierIndentation: EnforcedStyle: outdent Style/AlignParameters: EnforcedStyle: with_fixed_indentation Style/MultilineOperationIndentation: EnforcedStyle: indented Style/SpaceInsideBlockBraces: SpaceBeforeBlockParameters: false Style/TrivialAccessors: Enabled: false # We adopted raise instead of fail. Style/SignalException: EnforcedStyle: only_raise Style/StringLiterals: EnforcedStyle: double_quotes Style/StringLiteralsInInterpolation: EnforcedStyle: double_quotes # Having these make it easier to *not* forget to add one when adding a new # value and you can simply copy the previous line. Style/TrailingComma: EnforcedStyleForMultiline: comma # 1.8.7 support Style/HashSyntax: EnforcedStyle: hash_rockets Style/Lambda: Enabled: false Style/DotPosition: EnforcedStyle: trailing Style/EachWithObject: Enabled: false Style/SpecialGlobalVars: Enabled: false Style/TrailingComma: Enabled: false # Metrics # Arbitrary max lengths for classes simply do not work and enabling this will # lead to a never ending stream of annoyance and changes. Metrics/ClassLength: Enabled: false # Arbitrary max lengths for methods simply do not work and enabling this will # lead to a never ending stream of annoyance and changes. Metrics/MethodLength: Enabled: false # No enforced convention here. Metrics/BlockNesting: Enabled: false # It will be obvious which code is complex, Rubocop should only lint simple # rules for us. Metrics/AbcSize: Enabled: false # It will be obvious which code is complex, Rubocop should only lint simple # rules for us. Metrics/CyclomaticComplexity: Enabled: false