Browse Source

Style/EmptyMethod

Maarten van den Berg 6 years ago
parent
commit
bfde887fde

+ 0 - 13
.rubocop.yml

@@ -376,19 +376,6 @@ Style/DateTime:
376 376
 Style/Documentation:
377 377
   Enabled: false
378 378
 
379
-# Offense count: 7
380
-# Cop supports --auto-correct.
381
-# Configuration parameters: EnforcedStyle.
382
-# SupportedStyles: compact, expanded
383
-Style/EmptyMethod:
384
-  Exclude:
385
-    - 'app/controllers/activities_controller.rb'
386
-    - 'app/controllers/api/people_controller.rb'
387
-    - 'app/controllers/groups_controller.rb'
388
-    - 'app/controllers/members_controller.rb'
389
-    - 'app/controllers/people_controller.rb'
390
-    - 'db/migrate/20180904163645_generate_calendar_tokens.rb'
391
-
392 379
 # Offense count: 6
393 380
 # Cop supports --auto-correct.
394 381
 Style/ExpandPathArguments:

+ 1 - 2
app/controllers/activities_controller.rb

@@ -291,8 +291,7 @@ class ActivitiesController < ApplicationController
291 291
     head :no_content
292 292
   end
293 293
 
294
-  def mass_new
295
-  end
294
+  def mass_new; end
296 295
 
297 296
   def mass_create
298 297
     require 'csv'

+ 1 - 2
app/controllers/api/people_controller.rb

@@ -10,8 +10,7 @@ class Api::PeopleController < ApiController
10 10
 
11 11
   # GET /api/people/1
12 12
   # GET /api/people/1.json
13
-  def show
14
-  end
13
+  def show; end
15 14
 
16 15
   private
17 16
 

+ 1 - 2
app/controllers/groups_controller.rb

@@ -103,8 +103,7 @@ class GroupsController < ApplicationController
103 103
     end
104 104
   end
105 105
 
106
-  def mass_add_members
107
-  end
106
+  def mass_add_members; end
108 107
 
109 108
   def process_mass_add_members
110 109
     require 'csv'

+ 1 - 2
app/controllers/members_controller.rb

@@ -15,8 +15,7 @@ class MembersController < ApplicationController
15 15
 
16 16
   # GET /members/1
17 17
   # GET /members/1.json
18
-  def show
19
-  end
18
+  def show; end
20 19
 
21 20
   # GET /members/new
22 21
   def new

+ 2 - 4
app/controllers/people_controller.rb

@@ -24,8 +24,7 @@ class PeopleController < ApplicationController
24 24
   end
25 25
 
26 26
   # GET /people/1/edit
27
-  def edit
28
-  end
27
+  def edit; end
29 28
 
30 29
   # POST /people
31 30
   # POST /people.json
@@ -46,8 +45,7 @@ class PeopleController < ApplicationController
46 45
     end
47 46
   end
48 47
 
49
-  def mass_new
50
-  end
48
+  def mass_new; end
51 49
 
52 50
   def mass_create
53 51
     require 'csv'

+ 1 - 2
db/migrate/20180904163645_generate_calendar_tokens.rb

@@ -5,6 +5,5 @@ class GenerateCalendarTokens < ActiveRecord::Migration[5.0]
5 5
     end
6 6
   end
7 7
 
8
-  def down
9
-  end
8
+  def down; end
10 9
 end