Commit 0bf918f0 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Fix rubocop offenses. It's not checked before when

it's inside lib/tasks/*
parent e042baeb
......@@ -19,6 +19,10 @@ AllCops:
- 'builds/**/*'
CacheRootDirectory: tmp
# TODO: Remove me after updating gitlab-style
Style/TrailingUnderscoreVariable:
Enabled: false
# Gitlab ###################################################################
Gitlab/ModuleWithInstanceVariables:
......
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 @@ def uid_for(user_name)
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment