Skip to content

Commit

Permalink
First pass at rubocop with travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
nstielau committed Jun 6, 2013
1 parent 008a93b commit 83bf7db
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MethodLength:
Max: 30

LineLength:
Max: 100

HashSyntax:
Enabled: false
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: ruby
rvm:
- 1.9.3
script: bundle exec rubocop
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ source "https://rubygems.org"
group :development do
gem "sensu-plugin"
end

group :test do
gem "sensu-plugin"
gem "rubocop"
end
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
GEM
remote: https://rubygems.org/
specs:
ast (1.0.2)
json (1.7.5)
mixlib-cli (1.2.2)
parser (2.0.0.beta4)
ast (~> 1.0)
slop (~> 3.4)
rainbow (1.1.4)
rubocop (0.8.2)
parser (>= 2.0.0.beta1, <= 2.0.0)
rainbow (>= 1.1.4)
sensu-plugin (0.1.4)
json
mixlib-cli (>= 1.1.0)
slop (3.4.5)

PLATFORMS
ruby

DEPENDENCIES
rubocop
sensu-plugin

0 comments on commit 83bf7db

Please sign in to comment.