From 013bccbd93c4d44994126a52bf997ea59ffe594e Mon Sep 17 00:00:00 2001
From: Robert Speicher <rspeicher@gmail.com>
Date: Mon, 23 May 2016 13:06:36 -0400
Subject: [PATCH] Enable Style/DefWithParentheses cop and fix single offense

---
 .rubocop.yml       | 2 +-
 lib/api/helpers.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.rubocop.yml b/.rubocop.yml
index 0946ef5d84..d09e493ef3 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -152,7 +152,7 @@ Style/ConstantName:
 
 # Use def with parentheses when there are arguments.
 Style/DefWithParentheses:
-  Enabled: false
+  Enabled: true
 
 # Checks for use of deprecated Hash methods.
 Style/DeprecatedHashMethods:
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index cadf9f98fe..2aaa0557ea 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -29,7 +29,7 @@ module API
       @current_user
     end
 
-    def sudo_identifier()
+    def sudo_identifier
       identifier ||= params[SUDO_PARAM] || env[SUDO_HEADER]
 
       # Regex for integers
-- 
2.30.9