Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed Aug 6, 2020
1 parent a13f301 commit 8b3481f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Lint/StructNewOverride:
Enabled: true

Metrics/AbcSize:
Max: 50
Enabled: false
Metrics/BlockLength:
Max: 30
Metrics/ClassLength:
Expand Down
3 changes: 1 addition & 2 deletions app/controllers/advertisement_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Neccessary due to rmagick
# rubocop:disable Metrics/ClassLength
# rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/BlockLength
class AdvertisementController < ApplicationController
include Magick
Expand Down Expand Up @@ -359,5 +358,5 @@ def article_ad(article)
end
# rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/ClassLength
# rubocop:enable Metrics/AbcSize

# rubocop:enable Metrics/BlockLength
2 changes: 0 additions & 2 deletions app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ def posts
end
end

# rubocop:disable Metrics/AbcSize
def activity
@posts = Post.undeleted.where(user: @user).count
@comments = Comment.undeleted.where(user: @user).where(post: Post.undeleted).count
Expand Down Expand Up @@ -118,7 +117,6 @@ def full_log

render layout: 'without_sidebar'
end
# rubocop:enable Metrics/AbcSize

def destroy
if @user.votes.count > 100
Expand Down

0 comments on commit 8b3481f

Please sign in to comment.