Skip to content
Snippets Groups Projects
Commit 8b3481f7 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Rubocop

parent a13f3019
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ Lint/StructNewOverride: ...@@ -27,7 +27,7 @@ Lint/StructNewOverride:
Enabled: true Enabled: true
Metrics/AbcSize: Metrics/AbcSize:
Max: 50 Enabled: false
Metrics/BlockLength: Metrics/BlockLength:
Max: 30 Max: 30
Metrics/ClassLength: Metrics/ClassLength:
......
...@@ -3,7 +3,6 @@ require 'rmagick' ...@@ -3,7 +3,6 @@ require 'rmagick'
# Neccessary due to rmagick # Neccessary due to rmagick
# rubocop:disable Metrics/ClassLength # rubocop:disable Metrics/ClassLength
# rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/MethodLength
# rubocop:disable Metrics/AbcSize
# rubocop:disable Metrics/BlockLength # rubocop:disable Metrics/BlockLength
class AdvertisementController < ApplicationController class AdvertisementController < ApplicationController
include Magick include Magick
...@@ -359,5 +358,5 @@ class AdvertisementController < ApplicationController ...@@ -359,5 +358,5 @@ class AdvertisementController < ApplicationController
end end
# rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/MethodLength
# rubocop:enable Metrics/ClassLength # rubocop:enable Metrics/ClassLength
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/BlockLength # rubocop:enable Metrics/BlockLength
...@@ -49,7 +49,6 @@ class UsersController < ApplicationController ...@@ -49,7 +49,6 @@ class UsersController < ApplicationController
end end
end end
# rubocop:disable Metrics/AbcSize
def activity def activity
@posts = Post.undeleted.where(user: @user).count @posts = Post.undeleted.where(user: @user).count
@comments = Comment.undeleted.where(user: @user).where(post: Post.undeleted).count @comments = Comment.undeleted.where(user: @user).where(post: Post.undeleted).count
...@@ -118,7 +117,6 @@ class UsersController < ApplicationController ...@@ -118,7 +117,6 @@ class UsersController < ApplicationController
render layout: 'without_sidebar' render layout: 'without_sidebar'
end end
# rubocop:enable Metrics/AbcSize
def destroy def destroy
if @user.votes.count > 100 if @user.votes.count > 100
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment