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
Léo-Paul Géneau
gitlab-ce
Commits
0bf918f0
Commit
0bf918f0
authored
Jan 24, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop offenses. It's not checked before when
it's inside lib/tasks/*
parent
e042baeb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
.rubocop.yml
.rubocop.yml
+4
-0
lib/gitlab/task_helpers.rb
lib/gitlab/task_helpers.rb
+4
-5
No files found.
.rubocop.yml
View file @
0bf918f0
...
@@ -19,6 +19,10 @@ AllCops:
...
@@ -19,6 +19,10 @@ AllCops:
-
'
builds/**/*'
-
'
builds/**/*'
CacheRootDirectory
:
tmp
CacheRootDirectory
:
tmp
# TODO: Remove me after updating gitlab-style
Style/TrailingUnderscoreVariable
:
Enabled
:
false
# Gitlab ###################################################################
# Gitlab ###################################################################
Gitlab/ModuleWithInstanceVariables
:
Gitlab/ModuleWithInstanceVariables
:
...
...
lib/gitlab/task_helpers.rb
View file @
0bf918f0
require
'rainbow/ext/string'
require
'rainbow/ext/string'
require
'gitlab/utils/strong_memoize'
require
'gitlab/utils/strong_memoize'
# rubocop:disable Rails/Output
module
Gitlab
module
Gitlab
TaskFailedError
=
Class
.
new
(
StandardError
)
TaskFailedError
=
Class
.
new
(
StandardError
)
TaskAbortedByUserError
=
Class
.
new
(
StandardError
)
TaskAbortedByUserError
=
Class
.
new
(
StandardError
)
...
@@ -96,12 +97,10 @@ module Gitlab
...
@@ -96,12 +97,10 @@ module Gitlab
end
end
def
gid_for
(
group_name
)
def
gid_for
(
group_name
)
begin
Etc
.
getgrnam
(
group_name
).
gid
Etc
.
getgrnam
(
group_name
).
gid
rescue
ArgumentError
# no group
rescue
ArgumentError
# no group
"group
#{
group_name
}
doesn't exist"
"group
#{
group_name
}
doesn't exist"
end
end
end
def
gitlab_user
def
gitlab_user
Gitlab
.
config
.
gitlab
.
user
Gitlab
.
config
.
gitlab
.
user
...
...
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