Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,6 +19,10 @@ AllCops:
- 'builds/**/*'
CacheRootDirectory: tmp
 
# TODO: Remove me after updating gitlab-style
Style/TrailingUnderscoreVariable:
Enabled: false
# Gitlab ###################################################################
 
Gitlab/ModuleWithInstanceVariables:
Loading
Loading
require 'rainbow/ext/string'
require 'gitlab/utils/strong_memoize'
 
# rubocop:disable Rails/Output
module Gitlab
TaskFailedError = Class.new(StandardError)
TaskAbortedByUserError = Class.new(StandardError)
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment