Skip to content

Commit

Permalink
Rubocopification
Browse files Browse the repository at this point in the history
  • Loading branch information
drusepth committed Sep 2, 2015
1 parent 47377f1 commit 8f88d28
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .rubocop.yml
Expand Up @@ -8,10 +8,13 @@ AllCops:
- "gemfiles/vendor/**/*"

Metrics/LineLength:
Max: 90
Max: 120

Metrics/AbcSize:
Max: 20

Metrics/MethodLength:
Max: 17
Max: 17

Documentation:
Enabled: false
6 changes: 3 additions & 3 deletions Guardfile
Expand Up @@ -5,8 +5,8 @@ ENV['coverage'] = 'no'

group :default do
guard :rubocop, all_on_start: false, keep_failed: false, cli: '--rails --format simple' do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
watch(/.+\.rb$/)
watch(%r{(?:.+/)?.rubocop.yml$}) { |m| File.dirname(m[0]) }
end

guard :minitest, spring: false, all_on_start: false, all_after_pass: false, keep_failed: true do
Expand All @@ -21,4 +21,4 @@ group :default do
watch(%r{^app/controllers/(.+)_controller\.rb}) { |m| "test/controllers/#{m[1]}_controller_test.rb" }
watch(%r{^lib/(.+)\.rb}) { |m| "test/lib/#{m[1]}_test.rb" }
end
end
end
1 change: 0 additions & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -66,5 +66,4 @@ def create_anonymous_user
email: id.to_s + '@localhost',
password: id.to_s)
end

end
2 changes: 1 addition & 1 deletion app/models/concerns/nils_blank_universe.rb
Expand Up @@ -9,6 +9,6 @@ module NilsBlankUniverse
end

def nil_blank_universe
universe = nil if universe.blank?
self.universe = nil if universe.blank?
end
end
4 changes: 0 additions & 4 deletions db/seeds.rb
Expand Up @@ -4,10 +4,6 @@
email: 'tolkien@example.com',
password: 'Mellon')

rowling = User.create(name: 'JKRowling',
email: 'rowling@example.com',
password: 'Granger')

middleearth = Universe.create(name: 'Middle-Earth',
user: tolkien,
privacy: 'public')
Expand Down

0 comments on commit 8f88d28

Please sign in to comment.