Commit 40b03f3b89e9831e35a2b26ef886042c2bc969d7

Authored by Laust Rud Jacobsen
1 parent 2f7e58ad
Exists in master and in 1 other branch production

Rubocop: one of the small consistencies: a single trailing blank line

.rubocop_todo.yml
@@ -369,12 +369,6 @@ Style/SymbolProc: @@ -369,12 +369,6 @@ Style/SymbolProc:
369 - 'app/models/deploy.rb' 369 - 'app/models/deploy.rb'
370 - 'spec/models/deploy_spec.rb' 370 - 'spec/models/deploy_spec.rb'
371 371
372 -# Offense count: 21  
373 -# Cop supports --auto-correct.  
374 -# Configuration parameters: EnforcedStyle, SupportedStyles.  
375 -Style/TrailingBlankLines:  
376 - Enabled: false  
377 -  
378 # Offense count: 13 372 # Offense count: 13
379 # Cop supports --auto-correct. 373 # Cop supports --auto-correct.
380 # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. 374 # Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
app/controllers/deploys_controller.rb
@@ -40,4 +40,3 @@ private @@ -40,4 +40,3 @@ private
40 } 40 }
41 end 41 end
42 end 42 end
43 -  
app/controllers/users_controller.rb
@@ -73,4 +73,3 @@ protected @@ -73,4 +73,3 @@ protected
73 @user_password_params ||= params[:user] ? params.require(:user).permit(:password, :password_confirmation) : {} 73 @user_password_params ||= params[:user] ? params.require(:user).permit(:password, :password_confirmation) : {}
74 end 74 end
75 end 75 end
76 -  
app/helpers/problems_helper.rb
@@ -29,4 +29,3 @@ module ProblemsHelper @@ -29,4 +29,3 @@ module ProblemsHelper
29 "#{url}/avatar/#{email_hash}?#{params.to_query}" 29 "#{url}/avatar/#{email_hash}?#{params.to_query}"
30 end 30 end
31 end 31 end
32 -  
app/models/app.rb
@@ -218,4 +218,3 @@ protected @@ -218,4 +218,3 @@ protected
218 github_repo.sub!(/\.git$/, '') 218 github_repo.sub!(/\.git$/, '')
219 end 219 end
220 end 220 end
221 -  
app/models/deploy.rb
@@ -44,4 +44,3 @@ protected @@ -44,4 +44,3 @@ protected
44 end 44 end
45 end 45 end
46 end 46 end
47 -  
app/models/notification_services/hubot_service.rb
@@ -29,4 +29,3 @@ class NotificationServices::HubotService < NotificationService @@ -29,4 +29,3 @@ class NotificationServices::HubotService < NotificationService
29 HTTParty.post(url, :body => {:message => message_for_hubot(problem), :room => room_id}) 29 HTTParty.post(url, :body => {:message => message_for_hubot(problem), :room => room_id})
30 end 30 end
31 end 31 end
32 -  
app/models/watcher.rb
@@ -40,4 +40,3 @@ protected @@ -40,4 +40,3 @@ protected
40 end 40 end
41 end 41 end
42 end 42 end
43 -  
autotest/discover.rb
1 Autotest.add_discovery { "rails" } 1 Autotest.add_discovery { "rails" }
2 Autotest.add_discovery { "rspec2" } 2 Autotest.add_discovery { "rspec2" }
3 -  
config/initializers/hoptoad.rb
@@ -6,4 +6,3 @@ HoptoadNotifier.configure do |config| @@ -6,4 +6,3 @@ HoptoadNotifier.configure do |config|
6 # Don't log error that causes 404 page 6 # Don't log error that causes 404 page
7 config.ignore << "Mongoid::Errors::DocumentNotFound" 7 config.ignore << "Mongoid::Errors::DocumentNotFound"
8 end 8 end
9 -  
config/routes.rb
@@ -71,4 +71,3 @@ Rails.application.routes.draw do @@ -71,4 +71,3 @@ Rails.application.routes.draw do
71 71
72 root :to => 'apps#index' 72 root :to => 'apps#index'
73 end 73 end
74 -  
config/unicorn.default.rb
@@ -29,4 +29,3 @@ before_fork do |server, _worker| @@ -29,4 +29,3 @@ before_fork do |server, _worker|
29 end 29 end
30 end 30 end
31 end 31 end
32 -  
lib/airbrake_api/params_error.rb
1 module AirbrakeApi 1 module AirbrakeApi
2 class ParamsError < StandardError; end 2 class ParamsError < StandardError; end
3 -end  
4 \ No newline at end of file 3 \ No newline at end of file
  4 +end
lib/airbrake_api/v3/notice_parser.rb
@@ -86,4 +86,4 @@ module AirbrakeApi @@ -86,4 +86,4 @@ module AirbrakeApi
86 end 86 end
87 end 87 end
88 end 88 end
89 -end  
90 \ No newline at end of file 89 \ No newline at end of file
  90 +end
lib/hoptoad.rb
@@ -22,4 +22,3 @@ module Hoptoad @@ -22,4 +22,3 @@ module Hoptoad
22 end 22 end
23 end 23 end
24 end 24 end
25 -  
lib/overrides/hoptoad_notifier/hoptoad_notifier.rb
@@ -21,4 +21,3 @@ HoptoadNotifier.module_eval do @@ -21,4 +21,3 @@ HoptoadNotifier.module_eval do
21 end 21 end
22 end 22 end
23 end 23 end
24 -  
lib/recurse.rb
@@ -20,4 +20,3 @@ class Hash @@ -20,4 +20,3 @@ class Hash
20 yield h 20 yield h
21 end 21 end
22 end 22 end
23 -  
lib/tasks/heroku/cron.rake
@@ -2,4 +2,3 @@ desc &quot;This task is called by the Heroku cron add-on&quot; @@ -2,4 +2,3 @@ desc &quot;This task is called by the Heroku cron add-on&quot;
2 task :cron => :environment do 2 task :cron => :environment do
3 Rake::Task["errbit:db:clear_resolved"].invoke 3 Rake::Task["errbit:db:clear_resolved"].invoke
4 end 4 end
5 -  
spec/fabricators/app_fabricator.rb
@@ -27,4 +27,3 @@ Fabricator(:deploy) do @@ -27,4 +27,3 @@ Fabricator(:deploy) do
27 environment 'production' 27 environment 'production'
28 revision { SecureRandom.hex(10) } 28 revision { SecureRandom.hex(10) }
29 end 29 end
30 -  
spec/fabricators/comment_fabricator.rb
@@ -3,4 +3,3 @@ Fabricator :comment do @@ -3,4 +3,3 @@ Fabricator :comment do
3 body 'Test comment' 3 body 'Test comment'
4 err(:fabricator => :problem) 4 err(:fabricator => :problem)
5 end 5 end
6 -  
spec/fabricators/sequences_fabricator.rb
1 Fabricate.sequence(:name) {|n| "John #{n} Doe"} 1 Fabricate.sequence(:name) {|n| "John #{n} Doe"}
2 Fabricate.sequence(:word) {|n| "word#{n}"} 2 Fabricate.sequence(:word) {|n| "word#{n}"}
3 -  
spec/models/deploy_spec.rb
@@ -39,4 +39,3 @@ describe Deploy, type: &#39;model&#39; do @@ -39,4 +39,3 @@ describe Deploy, type: &#39;model&#39; do
39 expect(Deploy.new(:revision => "1234567890abcdef").short_revision).to eq "1234567" 39 expect(Deploy.new(:revision => "1234567890abcdef").short_revision).to eq "1234567"
40 end 40 end
41 end 41 end
42 -