Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qpixel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Answers
Qpixel
Commits
8b3481f7
Commit
8b3481f7
authored
Aug 6, 2020
by
ArtOfCode-
Browse files
Options
Downloads
Patches
Plain Diff
Rubocop
parent
a13f3019
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.rubocop.yml
+1
-1
1 addition, 1 deletion
.rubocop.yml
app/controllers/advertisement_controller.rb
+1
-2
1 addition, 2 deletions
app/controllers/advertisement_controller.rb
app/controllers/users_controller.rb
+0
-2
0 additions, 2 deletions
app/controllers/users_controller.rb
with
2 additions
and
5 deletions
.rubocop.yml
+
1
−
1
View file @
8b3481f7
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
app/controllers/advertisement_controller.rb
+
1
−
2
View file @
8b3481f7
...
@@ -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
This diff is collapsed.
Click to expand it.
app/controllers/users_controller.rb
+
0
−
2
View file @
8b3481f7
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment