Skip to content

Commit

Permalink
Add rubocop & add it to travis-ci builds
Browse files Browse the repository at this point in the history
  • Loading branch information
suweller committed Aug 5, 2014
1 parent f9880d7 commit 81092ee
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
require: rubocop-rspec

Style/AccessModifierIndentation:
EnforcedStyle: outdent

Style/AlignParameters:
EnforcedStyle: with_fixed_indentation

Style/DotPosition:
EnforcedStyle: trailing

Style/TrailingComma:
EnforcedStyleForMultiline: comma

Style/EmptyLinesAroundBody:
Description: "Keeps track of empty lines around expression bodies."
Enabled: false

Style/RegexpLiteral:
MaxSlashes: 0

Style/HashSyntax:
EnforcedStyle: ruby19

Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.0
2.1.2
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
language: ruby
rvm:
- 1.9.3
- 2.1.0
- 2.1.2
script:
- bundle exec rspec
- bundle exec rubocop
2 changes: 2 additions & 0 deletions freemle.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 2.14'
spec.add_development_dependency 'webmock', '~> 1.17'
spec.add_development_dependency 'rubocop', '~> 0.24.1'
spec.add_development_dependency 'rubocop-rspec', '~> 1.1.0'
end

0 comments on commit 81092ee

Please sign in to comment.