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
Jérome Perrin
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
Hide 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:
-
'
builds/**/*'
CacheRootDirectory
:
tmp
# TODO: Remove me after updating gitlab-style
Style/TrailingUnderscoreVariable
:
Enabled
:
false
# Gitlab ###################################################################
Gitlab/ModuleWithInstanceVariables
:
...
...
lib/gitlab/task_helpers.rb
View file @
0bf918f0
require
'rainbow/ext/string'
require
'gitlab/utils/strong_memoize'
# rubocop:disable Rails/Output
module
Gitlab
TaskFailedError
=
Class
.
new
(
StandardError
)
TaskAbortedByUserError
=
Class
.
new
(
StandardError
)
...
...
@@ -96,11 +97,9 @@ module Gitlab
end
def
gid_for
(
group_name
)
begin
Etc
.
getgrnam
(
group_name
).
gid
rescue
ArgumentError
# no group
"group
#{
group_name
}
doesn't exist"
end
Etc
.
getgrnam
(
group_name
).
gid
rescue
ArgumentError
# no group
"group
#{
group_name
}
doesn't exist"
end
def
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