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

Add frozen_string_literal: true

Christophe Bliard1394fc40f544
diff --git a/lib_static/rubocop/cop/open_project/add_preview_for_view_component.rb b/lib_static/rubocop/cop/open_project/add_preview_for_view_component.rb
index 33e7f305bf1..1fa98dc9545 100644
--- a/lib_static/rubocop/cop/open_project/add_preview_for_view_component.rb
+++ b/lib_static/rubocop/cop/open_project/add_preview_for_view_component.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
@@ -28,8 +30,8 @@
module RuboCop::Cop::OpenProject
class AddPreviewForViewComponent < RuboCop::Cop::Base
- COMPONENT_PATH = '/app/components/'.freeze
- PREVIEW_PATH = '/lookbook/previews/'.freeze
+ COMPONENT_PATH = '/app/components/'
+ PREVIEW_PATH = '/lookbook/previews/'
def on_class(node)
path = node.loc.expression.source_buffer.name