Skip to content

Commit

Permalink
Add travis linting tests (rubocop/foodcritic)
Browse files Browse the repository at this point in the history
  • Loading branch information
chr4 committed Aug 18, 2014
1 parent 3966619 commit d42dbbe
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
LineLength:
Max: 200

HashSyntax:
EnforcedStyle: ruby19

CaseIndentation:
IndentWhenRelativeTo: end

MethodLength:
Max: 50

Documentation:
Enabled: false

ClassAndModuleChildren:
Enabled: false

SingleSpaceBeforeFirstArg:
Enabled: false
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: ruby
rvm:
- 2.0
- 2.1
script:
- bundle exec rubocop
- bundle exec foodcritic -f any .
18 changes: 18 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
source 'https://rubygems.org'

group :lint do
gem 'foodcritic'
gem 'rubocop'
end

group :unit do
gem 'berkshelf'
end

group :kitchen_common do
gem 'test-kitchen', '~> 1.2'
end

group :kitchen_vagrant do
gem 'kitchen-vagrant', '~> 0.11'
end

0 comments on commit d42dbbe

Please sign in to comment.