Commit b93ea982 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Enable rubocop rule

parent 76524ecf
...@@ -877,7 +877,7 @@ Lint/ParenthesesAsGroupedExpression: ...@@ -877,7 +877,7 @@ Lint/ParenthesesAsGroupedExpression:
Checks for method calls with a space before the opening Checks for method calls with a space before the opening
parenthesis. parenthesis.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces' StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
Enabled: false Enabled: true
Lint/RequireParentheses: Lint/RequireParentheses:
Description: >- Description: >-
......
...@@ -33,7 +33,7 @@ class GitlabCustomHook ...@@ -33,7 +33,7 @@ class GitlabCustomHook
# we combine both stdout and stderr as we don't know what stream # we combine both stdout and stderr as we don't know what stream
# will be used by the custom hook # will be used by the custom hook
Open3.popen2e (hook) do |stdin, stdout_stderr, wait_thr| Open3.popen2e(hook) do |stdin, stdout_stderr, wait_thr|
exit_status = true exit_status = true
stdin.sync = true stdin.sync = true
...@@ -43,7 +43,7 @@ class GitlabCustomHook ...@@ -43,7 +43,7 @@ class GitlabCustomHook
begin begin
# inject all the changes as stdin to the hook # inject all the changes as stdin to the hook
changes.lines do |line| changes.lines do |line|
stdin.puts (line) stdin.puts(line)
end end
rescue Errno::EPIPE rescue Errno::EPIPE
end end
......
...@@ -62,7 +62,7 @@ class GitlabPostReceive ...@@ -62,7 +62,7 @@ class GitlabPostReceive
# Center the line by calculating the left padding measured in characters. # Center the line by calculating the left padding measured in characters.
line_padding = [(total_width - line.length) / 2, 0].max line_padding = [(total_width - line.length) / 2, 0].max
puts (" " * line_padding) + line puts(" " * line_padding) + line
end end
puts puts
......
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