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

autofix new rubocop cops

ulferts4200b3861771
diff --git a/lib/api/decorators/property_schema_representer.rb b/lib/api/decorators/property_schema_representer.rb
index 924827bc108..2838b09a3c5 100644
--- a/lib/api/decorators/property_schema_representer.rb
+++ b/lib/api/decorators/property_schema_representer.rb
@@ -35,8 +35,16 @@ module API
include API::Decorators::FormattableProperty
def initialize(
- type:, name:, location: nil, required: true, has_default: false, writable: true,
- attribute_group: nil, description: nil, current_user: nil, deprecated: nil
+ type:,
+ name:,
+ location: nil,
+ required: true,
+ has_default: false,
+ writable: true,
+ attribute_group: nil,
+ description: nil,
+ current_user: nil,
+ deprecated: nil
)
@type = type
@name = name
diff --git a/lib/api/decorators/schema_representer.rb b/lib/api/decorators/schema_representer.rb
index e1a74c85a5b..a41a62cdd72 100644
--- a/lib/api/decorators/schema_representer.rb
+++ b/lib/api/decorators/schema_representer.rb
@@ -92,7 +92,8 @@ module API
end
def schema_with_allowed_link(property,
- href_callback:, type: make_type(property),
+ href_callback:,
+ type: make_type(property),
name_source: property,
as: camelize(property),
required: true,
@@ -120,7 +121,9 @@ module API
end
def schema_with_allowed_collection(property,
- value_representer:, link_factory:, type: make_type(property),
+ value_representer:,
+ link_factory:,
+ type: make_type(property),
name_source: property,
as: camelize(property),
values_callback: -> do
diff --git a/lib/api/v3/work_packages/work_package_collection_representer.rb b/lib/api/v3/work_packages/work_package_collection_representer.rb
index 3f681092f44..b87327cb37e 100644
--- a/lib/api/v3/work_packages/work_package_collection_representer.rb
+++ b/lib/api/v3/work_packages/work_package_collection_representer.rb
@@ -32,7 +32,10 @@ module API
class WorkPackageCollectionRepresenter < ::API::Decorators::OffsetPaginatedCollection
def initialize(models,
self_link:,
- groups:, total_sums:, current_user:, query: {},
+ groups:,
+ total_sums:,
+ current_user:,
+ query: {},
project: nil,
page: nil,
per_page: nil,
diff --git a/lib/open_project/plugins/acts_as_op_engine.rb b/lib/open_project/plugins/acts_as_op_engine.rb
index bc7707e54d0..23123208510 100644
--- a/lib/open_project/plugins/acts_as_op_engine.rb
+++ b/lib/open_project/plugins/acts_as_op_engine.rb
@@ -238,7 +238,8 @@ module OpenProject::Plugins
end
def add_api_attribute(on:,
- ar_name:, writable_for: %i[create update],
+ ar_name:,
+ writable_for: %i[create update],
writable: true,
&block)
config.to_prepare do
diff --git a/lib/open_project/text_formatting/matchers/resource_links_matcher.rb b/lib/open_project/text_formatting/matchers/resource_links_matcher.rb
index 84707fcb38c..8869571e414 100644
--- a/lib/open_project/text_formatting/matchers/resource_links_matcher.rb
+++ b/lib/open_project/text_formatting/matchers/resource_links_matcher.rb
@@ -156,8 +156,17 @@ module OpenProject::TextFormatting
:link,
:context
- def initialize(matched_string:, leading:, escaped:, project_prefix:, project_identifier:,
- prefix:, sep:, raw_identifier:, identifier:, context:)
+ def initialize(matched_string:,
+ leading:,
+ escaped:,
+ project_prefix:,
+ project_identifier:,
+ prefix:,
+ sep:,
+ raw_identifier:,
+ identifier:,
+ context:)
+ super
# The entire string that was matched
@matched_string = matched_string
# Leading string before the link match