From 40b03f3b89e9831e35a2b26ef886042c2bc969d7 Mon Sep 17 00:00:00 2001 From: Laust Rud Jacobsen Date: Sat, 31 Oct 2015 15:25:24 +0100 Subject: [PATCH] Rubocop: one of the small consistencies: a single trailing blank line --- .rubocop_todo.yml | 6 ------ app/controllers/deploys_controller.rb | 1 - app/controllers/users_controller.rb | 1 - app/helpers/problems_helper.rb | 1 - app/models/app.rb | 1 - app/models/deploy.rb | 1 - app/models/notification_services/hubot_service.rb | 1 - app/models/watcher.rb | 1 - autotest/discover.rb | 1 - config/initializers/hoptoad.rb | 1 - config/routes.rb | 1 - config/unicorn.default.rb | 1 - lib/airbrake_api/params_error.rb | 2 +- lib/airbrake_api/v3/notice_parser.rb | 2 +- lib/hoptoad.rb | 1 - lib/overrides/hoptoad_notifier/hoptoad_notifier.rb | 1 - lib/recurse.rb | 1 - lib/tasks/heroku/cron.rake | 1 - spec/fabricators/app_fabricator.rb | 1 - spec/fabricators/comment_fabricator.rb | 1 - spec/fabricators/sequences_fabricator.rb | 1 - spec/models/deploy_spec.rb | 1 - 22 files changed, 2 insertions(+), 27 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e4e57bd..373ddcb 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -369,12 +369,6 @@ Style/SymbolProc: - 'app/models/deploy.rb' - 'spec/models/deploy_spec.rb' -# Offense count: 21 -# Cop supports --auto-correct. -# Configuration parameters: EnforcedStyle, SupportedStyles. -Style/TrailingBlankLines: - Enabled: false - # Offense count: 13 # Cop supports --auto-correct. # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. diff --git a/app/controllers/deploys_controller.rb b/app/controllers/deploys_controller.rb index b670df5..97c2499 100644 --- a/app/controllers/deploys_controller.rb +++ b/app/controllers/deploys_controller.rb @@ -40,4 +40,3 @@ private } end end - diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2b5e1f5..2ae0a6d 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -73,4 +73,3 @@ protected @user_password_params ||= params[:user] ? params.require(:user).permit(:password, :password_confirmation) : {} end end - diff --git a/app/helpers/problems_helper.rb b/app/helpers/problems_helper.rb index c2d29e4..02a329f 100644 --- a/app/helpers/problems_helper.rb +++ b/app/helpers/problems_helper.rb @@ -29,4 +29,3 @@ module ProblemsHelper "#{url}/avatar/#{email_hash}?#{params.to_query}" end end - diff --git a/app/models/app.rb b/app/models/app.rb index db77fc7..2c62359 100644 --- a/app/models/app.rb +++ b/app/models/app.rb @@ -218,4 +218,3 @@ protected github_repo.sub!(/\.git$/, '') end end - diff --git a/app/models/deploy.rb b/app/models/deploy.rb index 0db5861..5e09b60 100644 --- a/app/models/deploy.rb +++ b/app/models/deploy.rb @@ -44,4 +44,3 @@ protected end end end - diff --git a/app/models/notification_services/hubot_service.rb b/app/models/notification_services/hubot_service.rb index 4faf65c..cc0f944 100644 --- a/app/models/notification_services/hubot_service.rb +++ b/app/models/notification_services/hubot_service.rb @@ -29,4 +29,3 @@ class NotificationServices::HubotService < NotificationService HTTParty.post(url, :body => {:message => message_for_hubot(problem), :room => room_id}) end end - diff --git a/app/models/watcher.rb b/app/models/watcher.rb index 8372aff..1a4bcdb 100644 --- a/app/models/watcher.rb +++ b/app/models/watcher.rb @@ -40,4 +40,3 @@ protected end end end - diff --git a/autotest/discover.rb b/autotest/discover.rb index ef4d3d3..f421dc5 100644 --- a/autotest/discover.rb +++ b/autotest/discover.rb @@ -1,3 +1,2 @@ Autotest.add_discovery { "rails" } Autotest.add_discovery { "rspec2" } - diff --git a/config/initializers/hoptoad.rb b/config/initializers/hoptoad.rb index 6218c78..004eb2a 100644 --- a/config/initializers/hoptoad.rb +++ b/config/initializers/hoptoad.rb @@ -6,4 +6,3 @@ HoptoadNotifier.configure do |config| # Don't log error that causes 404 page config.ignore << "Mongoid::Errors::DocumentNotFound" end - diff --git a/config/routes.rb b/config/routes.rb index 220abec..5603eb5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -71,4 +71,3 @@ Rails.application.routes.draw do root :to => 'apps#index' end - diff --git a/config/unicorn.default.rb b/config/unicorn.default.rb index adb1255..b97ef26 100644 --- a/config/unicorn.default.rb +++ b/config/unicorn.default.rb @@ -29,4 +29,3 @@ before_fork do |server, _worker| end end end - diff --git a/lib/airbrake_api/params_error.rb b/lib/airbrake_api/params_error.rb index 2e1bb7a..d0e276b 100644 --- a/lib/airbrake_api/params_error.rb +++ b/lib/airbrake_api/params_error.rb @@ -1,3 +1,3 @@ module AirbrakeApi class ParamsError < StandardError; end -end \ No newline at end of file +end diff --git a/lib/airbrake_api/v3/notice_parser.rb b/lib/airbrake_api/v3/notice_parser.rb index 33c0de0..a65767f 100644 --- a/lib/airbrake_api/v3/notice_parser.rb +++ b/lib/airbrake_api/v3/notice_parser.rb @@ -86,4 +86,4 @@ module AirbrakeApi end end end -end \ No newline at end of file +end diff --git a/lib/hoptoad.rb b/lib/hoptoad.rb index f46215c..0d23716 100644 --- a/lib/hoptoad.rb +++ b/lib/hoptoad.rb @@ -22,4 +22,3 @@ module Hoptoad end end end - diff --git a/lib/overrides/hoptoad_notifier/hoptoad_notifier.rb b/lib/overrides/hoptoad_notifier/hoptoad_notifier.rb index f628f98..516b0ac 100644 --- a/lib/overrides/hoptoad_notifier/hoptoad_notifier.rb +++ b/lib/overrides/hoptoad_notifier/hoptoad_notifier.rb @@ -21,4 +21,3 @@ HoptoadNotifier.module_eval do end end end - diff --git a/lib/recurse.rb b/lib/recurse.rb index 9304823..cfc0467 100644 --- a/lib/recurse.rb +++ b/lib/recurse.rb @@ -20,4 +20,3 @@ class Hash yield h end end - diff --git a/lib/tasks/heroku/cron.rake b/lib/tasks/heroku/cron.rake index fab6254..2be802f 100644 --- a/lib/tasks/heroku/cron.rake +++ b/lib/tasks/heroku/cron.rake @@ -2,4 +2,3 @@ desc "This task is called by the Heroku cron add-on" task :cron => :environment do Rake::Task["errbit:db:clear_resolved"].invoke end - diff --git a/spec/fabricators/app_fabricator.rb b/spec/fabricators/app_fabricator.rb index 6a38543..5b2c3af 100644 --- a/spec/fabricators/app_fabricator.rb +++ b/spec/fabricators/app_fabricator.rb @@ -27,4 +27,3 @@ Fabricator(:deploy) do environment 'production' revision { SecureRandom.hex(10) } end - diff --git a/spec/fabricators/comment_fabricator.rb b/spec/fabricators/comment_fabricator.rb index 21565b0..5450096 100644 --- a/spec/fabricators/comment_fabricator.rb +++ b/spec/fabricators/comment_fabricator.rb @@ -3,4 +3,3 @@ Fabricator :comment do body 'Test comment' err(:fabricator => :problem) end - diff --git a/spec/fabricators/sequences_fabricator.rb b/spec/fabricators/sequences_fabricator.rb index 561be74..5ec7758 100644 --- a/spec/fabricators/sequences_fabricator.rb +++ b/spec/fabricators/sequences_fabricator.rb @@ -1,3 +1,2 @@ Fabricate.sequence(:name) {|n| "John #{n} Doe"} Fabricate.sequence(:word) {|n| "word#{n}"} - diff --git a/spec/models/deploy_spec.rb b/spec/models/deploy_spec.rb index b6f329f..f35a800 100644 --- a/spec/models/deploy_spec.rb +++ b/spec/models/deploy_spec.rb @@ -39,4 +39,3 @@ describe Deploy, type: 'model' do expect(Deploy.new(:revision => "1234567890abcdef").short_revision).to eq "1234567" end end - -- libgit2 0.21.2