diff --git a/.rubocop.yml b/.rubocop.yml
index 0946ef5d8488cbee69081bd95635e993085f2e1c..d09e493ef3850928e2b4f5acdaf9ba6c1e69da0a 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 cadf9f98fe3970157145d4d804654ebd0248af63..2aaa0557ea30fcd834fced9462616f96f332c7ea 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