Skip to content

Instantly share code, notes, and snippets.

@vladvinnikov
Forked from gambala/rubocop.yml
Created February 3, 2016 20:49
Show Gist options
  • Select an option

  • Save vladvinnikov/4a721769ffb7d8b0fbaf to your computer and use it in GitHub Desktop.

Select an option

Save vladvinnikov/4a721769ffb7d8b0fbaf to your computer and use it in GitHub Desktop.

Revisions

  1. @gambala gambala created this gist Feb 3, 2016.
    46 changes: 46 additions & 0 deletions rubocop.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,46 @@
    inherit_from: .rubocop_todo.yml
    AllCops:
    Exclude:
    - 'bin/*'
    - 'db/schema.rb'
    - 'tmp/**/*'
    - 'vendor/**/*'
    RunRailsCops: true
    Documentation:
    Enabled: false
    LineLength:
    Enabled: false
    Max: 100
    Lint/AssignmentInCondition:
    Enabled: false
    Rails/ActionFilter:
    Enabled: false
    Style/CollectionMethods:
    Description: Preferred collection methods.
    StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
    Enabled: true
    PreferredMethods:
    collect: map
    collect!: map!
    find: detect
    find_all: select
    reduce: inject
    Style/FileName:
    Description: Use snake_case for source file names.
    StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
    Enabled: false
    Exclude: []
    Style/MultilineOperationIndentation:
    Enabled: false
    Style/PredicateName:
    Description: Check the names of predicate methods.
    StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
    Enabled: true
    NamePrefix:
    - is_
    - has_
    - have_
    NamePrefixBlacklist:
    - is_
    Exclude:
    - spec/**/*