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

Satisfy rubocop

Wieland Lindenthal8332b660b4d5
diff --git a/app/models/work_package/exporter/formatters.rb b/app/models/work_package/exporter/formatters.rb
index ea96b7b0ccf..e7657e98bcc 100644
--- a/app/models/work_package/exporter/formatters.rb
+++ b/app/models/work_package/exporter/formatters.rb
@@ -1,7 +1,7 @@
module WorkPackage::Exporter
module Formatters
def self.default_formatter_strings
- @default_formatters_strings ||= %i[default costs estimated_hours].map do |key|
+ @default_formatter_strings ||= %i[default costs estimated_hours].map do |key|
"WorkPackage::Exporter::Formatters::#{key.to_s.camelize}"
end
end
diff --git a/modules/bim/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail.rb b/modules/bim/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail.rb
index 404be2ecc50..2050145f9ee 100644
--- a/modules/bim/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail.rb
+++ b/modules/bim/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail.rb
@@ -4,7 +4,7 @@ module OpenProject::Bim::WorkPackage::Exporter::Formatters
column.is_a? ::Bim::Queries::WorkPackages::Columns::BcfThumbnailColumn
end
- def format(work_package, column, **options)
+ def format(work_package, _column, **_options)
work_package&.bcf_issue&.viewpoints&.any? ? "x" : ''
end
end
diff --git a/modules/bim/spec/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail_spec.rb b/modules/bim/spec/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail_spec.rb
index 9ff8f1c276a..bedcb71cd46 100644
--- a/modules/bim/spec/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail_spec.rb
+++ b/modules/bim/spec/lib/open_project/bim/work_package/exporter/formatters/bcf_thumbnail_spec.rb
@@ -60,4 +60,3 @@ describe OpenProject::Bim::WorkPackage::Exporter::Formatters::BcfThumbnail do
end
end
end
-