Skip to content

Commit

Permalink
Merge pull request square#192 from square/rob.rubocop
Browse files Browse the repository at this point in the history
Setup rubocop
  • Loading branch information
robolson committed Oct 11, 2015
2 parents 875ba76 + e14f438 commit 6598191
Show file tree
Hide file tree
Showing 72 changed files with 888 additions and 435 deletions.
44 changes: 44 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
inherit_from: .rubocop_todo.yml
AllCops:
Include:
- 'Rakefile'
- 'config.ru'
Exclude:
- 'vendor/**/*'
- 'db/schema.rb'

Lint/HandleExceptions:
Exclude:
- 'lib/git_repo.rb'

Lint/NonLocalExitFromIterator:
Exclude:
- 'app/jobs/autosize_workers_job.rb'

Lint/UselessAssignment:
Exclude:
- 'config/compass.rb'
- 'spec/models/build_spec.rb'

Style/BlockDelimiters:
Enabled: false

Style/EmptyLinesAroundBlockBody:
Enabled: false

Style/EmptyLinesAroundClassBody:
Enabled: false

Style/ExtraSpacing:
Enabled: false

Style/GuardClause:
# Permit this for reasonably sized methods
MinBodyLength: 7

Style/MultilineBlockChain:
Enabled: false

Style/MultilineBlockLayout:
Exclude:
- 'spec/lib/partitioner/maven_spec.rb'
Loading

0 comments on commit 6598191

Please sign in to comment.