Skip to content
Snippets Groups Projects
.rubocop.yml 1.29 KiB
Newer Older
  • Learn to ignore specific revisions
  • Eugen Rochko's avatar
    Eugen Rochko committed
    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/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:
    
    
    Style/SpaceInsideHashLiteralBraces:
      EnforcedStyle: space
    
    Style/TrailingCommaInLiteral:
      EnforcedStyleForMultiline: 'comma'
    
    Style/RegexpLiteral:
      Enabled: false
    
    
    Style/Lambda:
      Enabled: false
    
    Rails/HasAndBelongsToMany:
      Enabled: false
    
    
      Exclude:
      - 'spec/**/*'
      - 'db/**/*'
      - 'app/views/**/*'
      - 'config/**/*'
    
      - 'node_modules/**/*'
    
      - 'vendor/**/*'