From c14a3293c025ccc2e31fa98e89e8d305bb65a42d Mon Sep 17 00:00:00 2001 From: Laust Rud Jacobsen Date: Sun, 15 Nov 2015 17:51:25 +0100 Subject: [PATCH] Rubocop: collapsing duplicate whitespace before first argument --- .rubocop_todo.yml | 11 ----------- app/models/comment.rb | 3 ++- config/application.rb | 4 ++-- spec/fabricators/app_fabricator.rb | 8 ++++---- spec/fabricators/notice_fabricator.rb | 4 ++-- spec/fabricators/user_fabricator.rb | 6 +++--- 6 files changed, 13 insertions(+), 23 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 5bb263a..24131c9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -116,17 +116,6 @@ Style/SingleLineBlockParams: Exclude: - 'lib/hoptoad/v2.rb' -# Offense count: 11 -# Cop supports --auto-correct. -Style/SingleSpaceBeforeFirstArg: - Exclude: - - 'app/models/comment.rb' - - 'config/application.rb' - - 'spec/fabricators/app_fabricator.rb' - - 'spec/fabricators/comment_fabricator.rb' - - 'spec/fabricators/notice_fabricator.rb' - - 'spec/fabricators/user_fabricator.rb' - # Offense count: 873 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, SupportedStyles. diff --git a/app/models/comment.rb b/app/models/comment.rb index 6199613..0705490 100644 --- a/app/models/comment.rb +++ b/app/models/comment.rb @@ -12,7 +12,8 @@ class Comment belongs_to :err, class_name: "Problem" belongs_to :user - delegate :app, to: :err + + delegate :app, to: :err validates :body, presence: true diff --git a/config/application.rb b/config/application.rb index e67375a..9492718 100644 --- a/config/application.rb +++ b/config/application.rb @@ -37,9 +37,9 @@ module Errbit # > rails generate - config config.generators do |g| - g.orm :mongoid + g.orm :mongoid g.template_engine :haml - g.test_framework :rspec, fixture: false + g.test_framework :rspec, fixture: false g.fixture_replacement :fabrication end diff --git a/spec/fabricators/app_fabricator.rb b/spec/fabricators/app_fabricator.rb index ed9667a..2162537 100644 --- a/spec/fabricators/app_fabricator.rb +++ b/spec/fabricators/app_fabricator.rb @@ -22,8 +22,8 @@ end Fabricator(:deploy) do app - username 'clyde.frog' - repository 'git@github.com/errbit/errbit.git' - environment 'production' - revision { SecureRandom.hex(10) } + username 'clyde.frog' + repository 'git@github.com/errbit/errbit.git' + environment 'production' + revision { SecureRandom.hex(10) } end diff --git a/spec/fabricators/notice_fabricator.rb b/spec/fabricators/notice_fabricator.rb index 3a1b5a2..3de4a41 100644 --- a/spec/fabricators/notice_fabricator.rb +++ b/spec/fabricators/notice_fabricator.rb @@ -1,8 +1,8 @@ Fabricator :notice do app err - error_class 'FooError' - message 'Too Much Bar' + error_class 'FooError' + message 'Too Much Bar' backtrace server_environment { { 'environment-name' => 'production' } } request { { 'component' => 'foo', 'action' => 'bar' } } diff --git a/spec/fabricators/user_fabricator.rb b/spec/fabricators/user_fabricator.rb index 244b27e..eb5fab6 100644 --- a/spec/fabricators/user_fabricator.rb +++ b/spec/fabricators/user_fabricator.rb @@ -1,7 +1,7 @@ Fabricator :user do - name 'Clyde Frog' - email { sequence(:user_email) { |n| "user.#{n}@example.com" } } - password 'password' + name 'Clyde Frog' + email { sequence(:user_email) { |n| "user.#{n}@example.com" } } + password 'password' password_confirmation 'password' end -- libgit2 0.21.2