Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
ba0d27fe
Commit
ba0d27fe
authored
Feb 22, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml
parent
ec5a74ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
16 deletions
+9
-16
.rubocop.yml
.rubocop.yml
+4
-4
.rubocop_todo.yml
.rubocop_todo.yml
+1
-5
lib/gitlab/o_auth/user.rb
lib/gitlab/o_auth/user.rb
+3
-6
lib/gitlab/seeder.rb
lib/gitlab/seeder.rb
+1
-1
No files found.
.rubocop.yml
View file @
ba0d27fe
...
@@ -630,10 +630,6 @@ Lint/EndInMethod:
...
@@ -630,10 +630,6 @@ Lint/EndInMethod:
Lint/EnsureReturn
:
Lint/EnsureReturn
:
Enabled
:
true
Enabled
:
true
# The use of eval represents a serious security risk.
Lint/Eval
:
Enabled
:
true
# Catches floating-point literals too large or small for Ruby to represent.
# Catches floating-point literals too large or small for Ruby to represent.
Lint/FloatOutOfRange
:
Lint/FloatOutOfRange
:
Enabled
:
true
Enabled
:
true
...
@@ -810,6 +806,10 @@ Performance/TimesMap:
...
@@ -810,6 +806,10 @@ Performance/TimesMap:
Security/JSONLoad
:
Security/JSONLoad
:
Enabled
:
true
Enabled
:
true
# This cop checks for the use of *Kernel#eval*.
Security/Eval
:
Enabled
:
true
# Rails #######################################################################
# Rails #######################################################################
# Enables Rails cops.
# Enables Rails cops.
...
...
.rubocop_todo.yml
View file @
ba0d27fe
# This configuration was generated by
# This configuration was generated by
# `rubocop --auto-gen-config --exclude-limit 0`
# `rubocop --auto-gen-config --exclude-limit 0`
# on 2017-02-22 1
2:40:11
-0600 using RuboCop version 0.47.1.
# on 2017-02-22 1
3:02:35
-0600 using RuboCop version 0.47.1.
# The point is for the user to remove these configuration records
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# Note that changes in the inspected code, or installation of new
...
@@ -105,10 +105,6 @@ Style/FormatString:
...
@@ -105,10 +105,6 @@ Style/FormatString:
Style/GuardClause
:
Style/GuardClause
:
Enabled
:
false
Enabled
:
false
# Offense count: 2
Style/IdenticalConditionalBranches
:
Enabled
:
false
# Offense count: 14
# Offense count: 14
Style/IfInsideElse
:
Style/IfInsideElse
:
Enabled
:
false
Enabled
:
false
...
...
lib/gitlab/o_auth/user.rb
View file @
ba0d27fe
...
@@ -29,12 +29,9 @@ module Gitlab
...
@@ -29,12 +29,9 @@ module Gitlab
def
save
(
provider
=
'OAuth'
)
def
save
(
provider
=
'OAuth'
)
unauthorized_to_create
unless
gl_user
unauthorized_to_create
unless
gl_user
if
needs_blocking?
gl_user
.
save!
gl_user
.
save!
gl_user
.
block
gl_user
.
block
if
needs_blocking?
else
gl_user
.
save!
end
log
.
info
"(
#{
provider
}
) saving user
#{
auth_hash
.
email
}
from login with extern_uid =>
#{
auth_hash
.
uid
}
"
log
.
info
"(
#{
provider
}
) saving user
#{
auth_hash
.
email
}
from login with extern_uid =>
#{
auth_hash
.
uid
}
"
gl_user
gl_user
...
...
lib/gitlab/seeder.rb
View file @
ba0d27fe
...
@@ -18,7 +18,7 @@ def Notify.deliver_later
...
@@ -18,7 +18,7 @@ def Notify.deliver_later
self
self
end
end
eos
eos
eval
(
code
)
# rubocop:disable
Lint
/Eval
eval
(
code
)
# rubocop:disable
Security
/Eval
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment