From 0e4c2b6ec425adceefd90a87ffe98d687e1726d9 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin <godfat@godfat.org> Date: Thu, 31 Mar 2016 21:23:33 +0800 Subject: [PATCH] enable Style/MethodDefParentheses and fix parentheses --- .rubocop.yml | 2 +- lib/gitlab/email/receiver.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 562197300b4..d14f8d6b53e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -322,7 +322,7 @@ Style/MethodCallParentheses: # Checks if the method definitions have or don't have parentheses. Style/MethodDefParentheses: - Enabled: false + Enabled: true # Use the configured style when naming methods. Style/MethodName: diff --git a/lib/gitlab/email/receiver.rb b/lib/gitlab/email/receiver.rb index 714f45d2d43..8fc39ee46f1 100644 --- a/lib/gitlab/email/receiver.rb +++ b/lib/gitlab/email/receiver.rb @@ -101,7 +101,7 @@ module Gitlab Project.find_with_namespace(reply_key) if reply_key end - def extract_reply project + def extract_reply(project) reply = ReplyParser.new(message).execute.strip raise EmptyEmailError if reply.blank? -- GitLab