Skip to content
Snippets Groups Projects
  • yhirano's avatar
    3988f2da
    Fix Rubocop offences (#2630) · 3988f2da
    yhirano authored
    * disable Bundler/OrderedGems
    
    * fix rubocop Lint/UselessAssignment
    
    * fix rubocop Style/BlockDelimiters
    
    * fix rubocop Style/AlignHash
    
    * fix rubocop Style/AlignParameters, Style/EachWithObject
    
    * fix rubocop Style/SpaceInLambdaLiteral
    3988f2da
    History
    Fix Rubocop offences (#2630)
    yhirano authored
    * disable Bundler/OrderedGems
    
    * fix rubocop Lint/UselessAssignment
    
    * fix rubocop Style/BlockDelimiters
    
    * fix rubocop Style/AlignHash
    
    * fix rubocop Style/AlignParameters, Style/EachWithObject
    
    * fix rubocop Style/SpaceInLambdaLiteral
.rubocop.yml 1.33 KiB
Rails:
  Enabled: true

Style/PerlBackrefs:
  AutoCorrect: false

Style/ClassAndModuleChildren:
  Enabled: false

Metrics/BlockNesting:
  Max: 2

Metrics/LineLength:
  AllowURI: true
  Enabled: false

Metrics/MethodLength:
  CountComments: false
  Max: 10

Metrics/AbcSize:
  Max: 100

Metrics/BlockNesting:
  Max: 3

Metrics/ClassLength:
  CountComments: false
  Max: 200

Metrics/CyclomaticComplexity:
  Max: 15

Metrics/MethodLength:
  Max: 55

Metrics/ModuleLength:
  CountComments: false
  Max: 200

Metrics/PerceivedComplexity:
  Max: 10

Metrics/ParameterLists:
  Max: 4
  CountKeywordArgs: true

Style/AccessModifierIndentation:
  EnforcedStyle: indent

Style/CollectionMethods:
  Enabled: true
  PreferredMethods:
    find_all: 'select'

Style/Documentation:
  Enabled: false

Style/DoubleNegation:
  Enabled: true

Style/FrozenStringLiteralComment:
  Enabled: true

Style/SpaceInsideHashLiteralBraces:
  EnforcedStyle: space

Style/TrailingCommaInLiteral:
  EnforcedStyleForMultiline: 'comma'