Skip to content

Commit

Permalink
add Rubocop config
Browse files Browse the repository at this point in the history
  • Loading branch information
youngbrioche committed Jun 10, 2014
1 parent fdc0292 commit e4fd27f
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,44 @@
AllCops:
# Include gemspec and Rakefile
Include:
- '**/*.gemspec'
- '**/Rakefile'
- '**/Gemfile'
Exclude:
- 'vendor/**/*'
# By default, the rails cops are not run. Override in project or home
# directory .rubocop.yml files, or by giving the -R/--rails option.
RunRailsCops: true

Style/Documentation:
Enabled: false

##################### Rails ##################################

Rails/ActionFilter:
EnforcedStyle: action
SupportedStyles:
- action
- filter
Include:
- app/controllers/**/*.rb

Rails/DefaultScope:
Include:
- app/models/**/*.rb

Rails/HasAndBelongsToMany:
Include:
- app/models/**/*.rb

Rails/ReadWriteAttribute:
Include:
- app/models/**/*.rb

Rails/ScopeArgs:
Include:
- app/models/**/*.rb

Rails/Validation:
Include:
- app/models/**/*.rb

0 comments on commit e4fd27f

Please sign in to comment.