Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Enable Style/EndlessMethod cop for single line endless method.

Dombi Attila966c2b988975
diff --git a/.rubocop.yml b/.rubocop.yml
index 91115911d14..97c693f210e 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -326,9 +326,6 @@ Style/ColonMethodCall:
Style/CommentAnnotation:
Enabled: false
-Style/PreferredHashMethods:
- Enabled: false
-
Style/Documentation:
Enabled: false
@@ -341,6 +338,9 @@ Style/EachWithObject:
Style/EmptyLiteral:
Enabled: false
+Style/EndlessMethod:
+ Enabled: true
+
Style/EvenOdd:
Enabled: false
@@ -401,6 +401,9 @@ Style/PercentLiteralDelimiters:
Style/PerlBackrefs:
Enabled: false
+Style/PreferredHashMethods:
+ Enabled: false
+
Style/Proc:
Enabled: false