Commit ba41f88b73f2376f35674fe018862a6b2a18b6ac
1 parent
d9624a37
Exists in
master
and in
1 other branch
Rubocop: remove blank lines at the start/end of class bodies
Tiny addition to overall consistency
Showing
23 changed files
with
0 additions
and
41 deletions
Show diff stats
.rubocop_todo.yml
... | ... | @@ -165,19 +165,6 @@ Style/EmptyLineBetweenDefs: |
165 | 165 | Style/EmptyLinesAroundBlockBody: |
166 | 166 | Enabled: false |
167 | 167 | |
168 | -# Offense count: 26 | |
169 | -# Cop supports --auto-correct. | |
170 | -# Configuration parameters: EnforcedStyle, SupportedStyles. | |
171 | -Style/EmptyLinesAroundClassBody: | |
172 | - Enabled: false | |
173 | - | |
174 | -# Offense count: 2 | |
175 | -# Cop supports --auto-correct. | |
176 | -Style/EmptyLinesAroundMethodBody: | |
177 | - Exclude: | |
178 | - - 'app/models/notification_services/hoiio_service.rb' | |
179 | - - 'app/models/notification_services/pushover_service.rb' | |
180 | - | |
181 | 168 | # Offense count: 9 |
182 | 169 | # Cop supports --auto-correct. |
183 | 170 | # Configuration parameters: EnforcedStyle, SupportedStyles. | ... | ... |
app/controllers/api/v1/notices_controller.rb
app/controllers/api/v1/problems_controller.rb
app/controllers/api/v1/stats_controller.rb
app/controllers/apps_controller.rb
app/controllers/deploys_controller.rb
1 | 1 | class DeploysController < ApplicationController |
2 | - | |
3 | 2 | protect_from_forgery :except => :create |
4 | 3 | |
5 | 4 | skip_before_action :verify_authenticity_token, :only => :create |
... | ... | @@ -40,6 +39,5 @@ class DeploysController < ApplicationController |
40 | 39 | :revision => params[:head], |
41 | 40 | } |
42 | 41 | end |
43 | - | |
44 | 42 | end |
45 | 43 | ... | ... |
app/controllers/notices_controller.rb
1 | 1 | class NoticesController < ApplicationController |
2 | - | |
3 | 2 | class ParamsError < StandardError; end |
4 | 3 | |
5 | 4 | skip_before_action :authenticate_user!, only: :create |
... | ... | @@ -48,5 +47,4 @@ class NoticesController < ApplicationController |
48 | 47 | def bad_params(exception) |
49 | 48 | render :text => exception.message, :status => :bad_request |
50 | 49 | end |
51 | - | |
52 | 50 | end | ... | ... |
app/controllers/problems_controller.rb
... | ... | @@ -5,7 +5,6 @@ |
5 | 5 | # MEMBER => :show, :edit, :update, :create, :destroy, :resolve, :unresolve, :create_issue, :unlink_issue |
6 | 6 | # COLLECTION => :index, :all, :destroy_several, :resolve_several, :unresolve_several, :merge_several, :unmerge_several, :search |
7 | 7 | class ProblemsController < ApplicationController |
8 | - | |
9 | 8 | include ProblemsSearcher |
10 | 9 | |
11 | 10 | before_action :need_selected_problem, :only => [ | ... | ... |
app/controllers/users_controller.rb
app/decorators/app_decorator.rb
1 | 1 | class AppDecorator < Draper::Decorator |
2 | - | |
3 | 2 | decorates_association :watchers |
4 | 3 | decorates_association :issue_tracker, :with => IssueTrackerDecorator |
5 | 4 | delegate_all |
... | ... | @@ -15,5 +14,4 @@ class AppDecorator < Draper::Decorator |
15 | 14 | def notify_err_display |
16 | 15 | object.notify_on_errs ? '' : 'display: none;' |
17 | 16 | end |
18 | - | |
19 | 17 | end | ... | ... |
app/decorators/issue_tracker_field_decorator.rb
app/decorators/watcher_decorator.rb
app/interactors/problem_destroy.rb
app/interactors/resolved_problem_clearer.rb
app/models/app.rb
app/models/comment.rb
app/models/deploy.rb
app/models/err.rb
app/models/notification_services/hoiio_service.rb
... | ... | @@ -37,6 +37,5 @@ class NotificationServices::HoiioService < NotificationService |
37 | 37 | room_id.split(',').each do |number| |
38 | 38 | sms.send :dest => number, :msg => "#{Errbit::Config.protocol}://#{Errbit::Config.host}/apps/#{problem.app.id} #{notification_description problem}" |
39 | 39 | end |
40 | - | |
41 | 40 | end |
42 | 41 | end | ... | ... |
app/models/notification_services/pushover_service.rb
... | ... | @@ -27,6 +27,5 @@ class NotificationServices::PushoverService < NotificationService |
27 | 27 | |
28 | 28 | # send push notification to pushover |
29 | 29 | notification.notify(api_token, "#{notification_description problem}", :priority => 1, :title => "Errbit Notification", :url => "#{Errbit::Config.protocol}://#{Errbit::Config.host}/apps/#{problem.app.id}", :url_title => "Link to error") |
30 | - | |
31 | 30 | end |
32 | 31 | end | ... | ... |
app/models/watcher.rb
lib/configurator.rb