Skip to content

Instantly share code, notes, and snippets.

@gambala
Created February 3, 2016 18:41
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gambala/0ce124eff5ae2e846592 to your computer and use it in GitHub Desktop.
Save gambala/0ce124eff5ae2e846592 to your computer and use it in GitHub Desktop.
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/**/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment