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

Fix some rubocop linting errors

Christophe Bliardb41d7adea1ef
diff --git a/lib_static/plugins/acts_as_journalized/lib/journal_formatter.rb b/lib_static/plugins/acts_as_journalized/lib/journal_formatter.rb
index ab38c589045..b4135a99113 100644
--- a/lib_static/plugins/acts_as_journalized/lib/journal_formatter.rb
+++ b/lib_static/plugins/acts_as_journalized/lib/journal_formatter.rb
@@ -110,7 +110,7 @@ module JournalFormatter
return if formatter.nil?
- formatter.render(key, values, options).html_safe
+ formatter.render(key, values, options).html_safe # rubocop:disable Rails/OutputSafety
end
def formatter_instance(formatter_key)
diff --git a/spec/lib/journal_formatter/active_status_spec.rb b/spec/lib/journal_formatter/active_status_spec.rb
index c280f1f5995..79dc8023ead 100644
--- a/spec/lib/journal_formatter/active_status_spec.rb
+++ b/spec/lib/journal_formatter/active_status_spec.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
+require 'spec_helper'
describe OpenProject::JournalFormatter::ActiveStatus do
let(:instance) { described_class.new(build(:journal)) }
diff --git a/spec/lib/journal_formatter/attachment_spec.rb b/spec/lib/journal_formatter/attachment_spec.rb
index db35201394b..033b6b14ccf 100644
--- a/spec/lib/journal_formatter/attachment_spec.rb
+++ b/spec/lib/journal_formatter/attachment_spec.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
+require 'spec_helper'
describe OpenProject::JournalFormatter::Attachment do
include ApplicationHelper
diff --git a/spec/lib/journal_formatter/diff_spec.rb b/spec/lib/journal_formatter/diff_spec.rb
index c48061017cb..5cda953f44d 100644
--- a/spec/lib/journal_formatter/diff_spec.rb
+++ b/spec/lib/journal_formatter/diff_spec.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
+require 'spec_helper'
describe OpenProject::JournalFormatter::Diff do
include ActionView::Helpers::TagHelper
diff --git a/spec/lib/journal_formatter/schedule_manually_spec.rb b/spec/lib/journal_formatter/schedule_manually_spec.rb
index a4848a6b601..7531a642b41 100644
--- a/spec/lib/journal_formatter/schedule_manually_spec.rb
+++ b/spec/lib/journal_formatter/schedule_manually_spec.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
+require 'spec_helper'
describe OpenProject::JournalFormatter::ScheduleManually do
let(:klass) { described_class }
diff --git a/spec/lib/journal_formatter/template_spec.rb b/spec/lib/journal_formatter/template_spec.rb
index 403bf718d70..cb2056c38e8 100644
--- a/spec/lib/journal_formatter/template_spec.rb
+++ b/spec/lib/journal_formatter/template_spec.rb
@@ -26,7 +26,7 @@
# See COPYRIGHT and LICENSE files for more details.
#++
-require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb')
+require 'spec_helper'
describe OpenProject::JournalFormatter::Template do
let(:instance) { described_class.new(build(:journal)) }