Skip to content

Commit

Permalink
robocop
Browse files Browse the repository at this point in the history
  • Loading branch information
tadyjp committed Dec 29, 2013
1 parent 29a39cc commit 29026b0
Show file tree
Hide file tree
Showing 31 changed files with 558 additions and 548 deletions.
21 changes: 21 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,21 @@

LineLength:
Max: 159

NumericLiterals:
Enabled: false

Documentation:
Enabled: false

WordArray:
Enabled: false

MethodLength:
Max: 30

IfUnlessModifier:
Enabled: false

CyclomaticComplexity:
Max: 10
4 changes: 4 additions & 0 deletions Gemfile
Expand Up @@ -70,6 +70,10 @@ group :development do

# profiler
gem 'rack-mini-profiler'

# rubocop
gem 'rubocop'
gem 'guard-rubocop'
end

group :development, :test do
Expand Down
15 changes: 15 additions & 0 deletions Gemfile.lock
Expand Up @@ -45,6 +45,7 @@ GEM
ancestry (2.0.0)
activerecord (>= 3.0.0)
arel (4.0.1)
ast (1.1.0)
atomic (1.1.14)
bcrypt-ruby (3.1.2)
better_errors (1.1.0)
Expand Down Expand Up @@ -104,6 +105,9 @@ GEM
guard-rspec (4.2.0)
guard (>= 2.1.1)
rspec (>= 2.14, < 4.0)
guard-rubocop (1.0.0)
guard (~> 2.0)
rubocop (~> 0.10)
guard-spring (0.0.4)
guard
spring
Expand Down Expand Up @@ -151,7 +155,11 @@ GEM
oauth2 (~> 0.8.0)
omniauth (~> 1.0)
orm_adapter (0.5.0)
parser (2.0.0)
ast (~> 1.1)
slop (~> 3.4, >= 3.4.5)
polyglot (0.3.3)
powerpack (0.0.9)
premailer (1.7.9)
css_parser (>= 1.1.9)
htmlentities (>= 4.0.0)
Expand Down Expand Up @@ -179,6 +187,7 @@ GEM
activesupport (= 4.0.2)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (1.1.4)
rake (10.1.1)
rb-fsevent (0.9.3)
rb-inotify (0.9.3)
Expand All @@ -202,6 +211,10 @@ GEM
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rubocop (0.15.0)
parser (~> 2.0)
powerpack (~> 0.0.6)
rainbow (>= 1.1.4)
sass (3.2.13)
sass-rails (4.0.1)
railties (>= 4.0.0, < 5.0)
Expand Down Expand Up @@ -264,6 +277,7 @@ DEPENDENCIES
factory_girl_rails
faraday
guard-rspec
guard-rubocop
guard-spring
jbuilder
mail
Expand All @@ -275,6 +289,7 @@ DEPENDENCIES
rails (~> 4.0.2)
redcarpet!
rspec-rails
rubocop
sass-rails
sdoc
spring
Expand Down
5 changes: 5 additions & 0 deletions Guardfile
Expand Up @@ -10,3 +10,8 @@ guard :rspec, spring: true do
watch('config/routes.rb') { 'spec/routing' }
watch('app/controllers/application_controller.rb') { 'spec/controllers' }
end

guard :rubocop, cli: ['--rails', '--auto-correct'] do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -9,5 +9,4 @@ def require_login
redirect_to root_path
end
end

end

0 comments on commit 29026b0

Please sign in to comment.