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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
autofix new rubocop cops
ulferts4200b3861771
diff --git a/lib/api/decorators/property_schema_representer.rb b/lib/api/decorators/property_schema_representer.rbindex 924827bc108..2838b09a3c5 100644--- a/lib/api/decorators/property_schema_representer.rb+++ b/lib/api/decorators/property_schema_representer.rb@@ -35,8 +35,16 @@ module APIinclude API::Decorators::FormattablePropertydef 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 = namediff --git a/lib/api/decorators/schema_representer.rb b/lib/api/decorators/schema_representer.rbindex e1a74c85a5b..a41a62cdd72 100644--- a/lib/api/decorators/schema_representer.rb+++ b/lib/api/decorators/schema_representer.rb@@ -92,7 +92,8 @@ module APIenddef 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 APIenddef 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: -> dodiff --git a/lib/api/v3/work_packages/work_package_collection_representer.rb b/lib/api/v3/work_packages/work_package_collection_representer.rbindex 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 APIclass WorkPackageCollectionRepresenter < ::API::Decorators::OffsetPaginatedCollectiondef 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.rbindex 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::Pluginsenddef add_api_attribute(on:,- ar_name:, writable_for: %i[create update],+ ar_name:,+ writable_for: %i[create update],writable: true,&block)config.to_prepare dodiff --git a/lib/open_project/text_formatting/matchers/resource_links_matcher.rb b/lib/open_project/text_formatting/matchers/resource_links_matcher.rbindex 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