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

chore[Op#53019]: rubocop amend `modules/gitlab_integration`

Kabiru Mwenjaa2ad0655912e
diff --git a/modules/gitlab_integration/app/models/gitlab_issue.rb b/modules/gitlab_integration/app/models/gitlab_issue.rb
index d7fe501a8a4..58ba450d1e4 100644
--- a/modules/gitlab_integration/app/models/gitlab_issue.rb
+++ b/modules/gitlab_integration/app/models/gitlab_issue.rb
@@ -50,7 +50,7 @@ class GitlabIssue < ApplicationRecord
unless: :partial?
validate :validate_labels_schema
- scope :without_work_package, -> { left_outer_joins(:work_packages).where(work_packages: { id: nil }) }
+ scope :without_work_package, -> { where.missing(:work_packages) }
def self.find_by_gitlab_identifiers(id: nil, url: nil, initialize: false)
raise ArgumentError, "needs an id or an url" if id.nil? && url.blank?
diff --git a/modules/gitlab_integration/app/models/gitlab_merge_request.rb b/modules/gitlab_integration/app/models/gitlab_merge_request.rb
index 4449e85810b..0cd08bd2f1f 100644
--- a/modules/gitlab_integration/app/models/gitlab_merge_request.rb
+++ b/modules/gitlab_integration/app/models/gitlab_merge_request.rb
@@ -53,7 +53,7 @@ class GitlabMergeRequest < ApplicationRecord
unless: :partial?
validate :validate_labels_schema
- scope :without_work_package, -> { left_outer_joins(:work_packages).where(work_packages: { id: nil }) }
+ scope :without_work_package, -> { where.missing(:work_packages) }
def self.find_by_gitlab_identifiers(id: nil, url: nil, initialize: false)
raise ArgumentError, "needs an id or an url" if id.nil? && url.blank?
diff --git a/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb b/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb
index 587a72e946d..847183710ae 100644
--- a/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb
+++ b/modules/gitlab_integration/db/migrate/20211015110000_gitlab_integration_models.rb
@@ -33,7 +33,7 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]
t.references :gitlab_user
t.references :merged_by
- t.bigint :gitlab_id, unique: true
+ t.bigint :gitlab_id, unique: true
t.integer :number, null: false
t.string :gitlab_html_url, null: false, unique: true
t.string :state, null: false
@@ -45,6 +45,7 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]
t.boolean :merged
t.datetime :merged_at
t.json :labels # [{name, color}]
+
t.timestamps
end
@@ -55,7 +56,6 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]
name: "unique_index_gl_mrs_wps_on_gl_mr_id_and_wp_id"
end
-
create_table :gitlab_users do |t|
t.bigint :gitlab_id, null: false, unique: true
t.string :gitlab_name, null: false
@@ -66,14 +66,13 @@ class GitlabIntegrationModels < ActiveRecord::Migration[6.1]
t.timestamps
end
-
create_table :gitlab_pipelines do |t|
t.references :gitlab_merge_request, null: false
t.bigint :gitlab_id, null: false, unique: true
t.string :gitlab_html_url, null: false
- t.bigint :project_id, null: false
- t.string :gitlab_user_avatar_url, null: false
+ t.bigint :project_id, null: false
+ t.string :gitlab_user_avatar_url, null: false
t.string :status, null: false
t.string :name, null: false
t.string :details_url
diff --git a/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb b/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb
index 2e046b29d5c..6256a34212f 100644
--- a/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb
+++ b/modules/gitlab_integration/db/migrate/20211015110002_add_gitlab_issues.rb
@@ -27,12 +27,11 @@
# See docs/COPYRIGHT.rdoc for more details.
#++
class AddGitlabIssues < ActiveRecord::Migration[7.0]
- # rubocop:disable Metrics/AbcSize
def change
create_table :gitlab_issues do |t|
t.references :gitlab_user
- t.bigint :gitlab_id, unique: true
+ t.bigint :gitlab_id, unique: true
t.integer :number, null: false
t.string :gitlab_html_url, null: false, unique: true
t.string :state, null: false
@@ -41,6 +40,7 @@ class AddGitlabIssues < ActiveRecord::Migration[7.0]
t.string :title
t.text :body
t.json :labels # [{name, color}]
+
t.timestamps
end
@@ -50,7 +50,5 @@ class AddGitlabIssues < ActiveRecord::Migration[7.0]
unique: true,
name: "unique_index_gl_issues_wps_on_gl_issue_id_and_wp_id"
end
-
end
- # rubocop:enable Metrics/AbcSize
end
diff --git a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb
index f0043d47551..5ed0b8dd4cc 100644
--- a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb
+++ b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_issue_representer.rb
@@ -42,7 +42,7 @@ module API
def initialize(model, current_user:, **_opts)
# We force `embed_links` so that github_user and github_check_runs
# are embedded and we can avoid having separate endpoints.
- super(model, current_user: current_user, embed_links: true)
+ super(model, current_user:, embed_links: true)
end
cached_representer key_parts: %i[gitlab_user]
@@ -61,7 +61,7 @@ module API
date_time_property :gitlab_updated_at,
render_nil: true,
- setter: ->(*) { nil }
+ setter: ->(*) {}
property :title,
render_nil: true
diff --git a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb
index 46627d1b173..535b9ddb49a 100644
--- a/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb
+++ b/modules/gitlab_integration/lib/api/v3/gitlab_issues/gitlab_user_representer.rb
@@ -37,7 +37,7 @@ module API
include API::Caching::CachedRepresenter
self_link id_attribute: :id,
- title_getter: ->(*) { nil }
+ title_getter: ->(*) {}
property :gitlab_name, as: :login
property :gitlab_email, as: :email
diff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb
index fa08a2b1a4d..7286b080bcf 100644
--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb
+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_merge_request_representer.rb
@@ -42,7 +42,7 @@ module API
def initialize(model, current_user:, **_opts)
# We force `embed_links` so that github_user and github_check_runs
# are embedded and we can avoid having separate endpoints.
- super(model, current_user: current_user, embed_links: true)
+ super(model, current_user:, embed_links: true)
end
cached_representer key_parts: %i[gitlab_user merged_by]
@@ -61,7 +61,7 @@ module API
date_time_property :gitlab_updated_at,
render_nil: true,
- setter: ->(*) { nil }
+ setter: ->(*) {}
property :title,
render_nil: true
diff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb
index fc3aab2bf24..a52c5700d9c 100644
--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb
+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_pipeline_representer.rb
@@ -38,7 +38,7 @@ module API
include API::Decorators::DateProperty
self_link id_attribute: :id,
- title_getter: ->(*) { nil }
+ title_getter: ->(*) {}
property :gitlab_html_url, as: :htmlUrl
property :gitlab_user_avatar_url, as: :userAvatarUrl
diff --git a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb
index 55f90e5c641..63ef95738b6 100644
--- a/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb
+++ b/modules/gitlab_integration/lib/api/v3/gitlab_merge_requests/gitlab_user_representer.rb
@@ -37,7 +37,7 @@ module API
include API::Caching::CachedRepresenter
self_link id_attribute: :id,
- title_getter: ->(*) { nil }
+ title_getter: ->(*) {}
property :gitlab_name, as: :login
property :gitlab_email, as: :email
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb
index fbb8b2abf4d..80855b058bf 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/engine.rb
@@ -29,10 +29,10 @@
require 'open_project/plugins'
-require_relative './patches/api/work_package_representer'
-require_relative './notification_handlers'
-require_relative './hook_handler'
-require_relative './services'
+require_relative 'patches/api/work_package_representer'
+require_relative 'notification_handlers'
+require_relative 'hook_handler'
+require_relative 'services'
module OpenProject::GitlabIntegration
class Engine < ::Rails::Engine
@@ -41,12 +41,12 @@ module OpenProject::GitlabIntegration
include OpenProject::Plugins::ActsAsOpEngine
register 'openproject-gitlab_integration',
- :author_url => 'https://github.com/btey/openproject',
+ author_url: 'https://github.com/btey/openproject',
bundled: true do
project_module(:gitlab, dependencies: :work_package_tracking) do
permission(:show_gitlab_content,
- {},
- permissible_on: %i[work_package project])
+ {},
+ permissible_on: %i[work_package project])
end
end
@@ -74,7 +74,7 @@ module OpenProject::GitlabIntegration
end
extend_api_response(:v3, :work_packages, :work_package,
- &::OpenProject::GitlabIntegration::Patches::API::WorkPackageRepresenter.extension)
+ &::OpenProject::GitlabIntegration::Patches::API::WorkPackageRepresenter.extension)
add_api_path :gitlab_merge_requests_by_work_package do |id|
"#{work_package(id)}/gitlab_merge_requests"
@@ -104,6 +104,5 @@ module OpenProject::GitlabIntegration
# Register the cron job to clean up old gitlab merge requests
::Cron::CronJob.register! ::Cron::ClearOldMergeRequestsJob
end
-
end
end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb
index 27a0d085356..e3466fcade3 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb
@@ -31,9 +31,9 @@ module OpenProject::GitlabIntegration
class HookHandler
# List of the gitlab events we can handle.
KNOWN_EVENTS = %w[
- push_hook
- issue_hook
- note_hook
+ push_hook
+ issue_hook
+ note_hook
merge_request_hook
pipeline_hook
system_hook
@@ -42,12 +42,12 @@ module OpenProject::GitlabIntegration
# A gitlab webhook happened.
# We need to check validity of the data and send a Notification
# which we process in our NotificationHandler.
- def process(hook, request, params, user)
+ def process(_hook, request, params, user)
event_type = request.env['HTTP_X_GITLAB_EVENT']
- event_type.gsub!(' ','_')
+ event_type.tr!(' ', '_')
event_type = event_type.to_s.downcase
- Rails.logger.debug "Received gitlab webhook #{event_type}"
+ Rails.logger.debug { "Received gitlab webhook #{event_type}" }
return 404 unless KNOWN_EVENTS.include?(event_type)
return 403 unless user.present?
@@ -58,9 +58,9 @@ module OpenProject::GitlabIntegration
.merge('open_project_user_id' => user.id,
'gitlab_event' => event_type)
- OpenProject::Notifications.send("gitlab.#{event_type}", payload)
+ OpenProject::Notifications.send(:"gitlab.#{event_type}", payload)
- return 200
+ 200
end
end
end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb
index 0c5cabcc360..53b4148f6ea 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/issue_hook.rb
@@ -33,7 +33,7 @@ module OpenProject::GitlabIntegration
# Handles Gitlab issue notifications.
class IssueHook
include OpenProject::GitlabIntegration::NotificationHandler::Helper
-
+
def process(payload_params)
@payload = wrap_payload(payload_params)
user = User.find_by_id(payload.open_project_user_id)
@@ -58,14 +58,15 @@ module OpenProject::GitlabIntegration
}[payload.object_attributes.action]
return nil unless accepted_actions.include? payload.object_attributes.action
+
I18n.t("gitlab_integration.issue_#{key_action}_referenced_comment",
- :issue_number => payload.object_attributes.iid,
- :issue_title => payload.object_attributes.title,
- :issue_url => payload.object_attributes.url,
- :repository => payload.repository.name,
- :repository_url => payload.repository.homepage,
- :gitlab_user => payload.user.name,
- :gitlab_user_url => payload.user.avatar_url)
+ issue_number: payload.object_attributes.iid,
+ issue_title: payload.object_attributes.title,
+ issue_url: payload.object_attributes.url,
+ repository: payload.repository.name,
+ repository_url: payload.repository.homepage,
+ gitlab_user: payload.user.name,
+ gitlab_user_url: payload.user.avatar_url)
end
def gitlab_issue
@@ -77,9 +78,10 @@ module OpenProject::GitlabIntegration
def upsert_issue(work_packages)
return if work_packages.empty? && gitlab_issue.nil?
+
OpenProject::GitlabIntegration::Services::UpsertIssue.new.call(payload,
- work_packages: work_packages)
+ work_packages:)
end
end
end
-end
\ No newline at end of file
+end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
index c4e65d05572..cc409d2f4c7 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/merge_request_hook.rb
@@ -83,14 +83,14 @@ module OpenProject::GitlabIntegration
return nil unless key
- I18n.t("gitlab_integration.merge_request_#{key_action ? key_action : key}_comment",
- :mr_number => payload.object_attributes.iid,
- :mr_title => payload.object_attributes.title,
- :mr_url => payload.object_attributes.url,
- :repository => payload.repository.name,
- :repository_url => payload.repository.url,
- :gitlab_user => payload.user.name,
- :gitlab_user_url => payload.user.avatar_url)
+ I18n.t("gitlab_integration.merge_request_#{key_action || key}_comment",
+ mr_number: payload.object_attributes.iid,
+ mr_title: payload.object_attributes.title,
+ mr_url: payload.object_attributes.url,
+ repository: payload.repository.name,
+ repository_url: payload.repository.url,
+ gitlab_user: payload.user.name,
+ gitlab_user_url: payload.user.avatar_url)
end
def merge_request
@@ -102,10 +102,10 @@ module OpenProject::GitlabIntegration
def upsert_merge_request(work_packages)
return if work_packages.empty? && merge_request.nil?
+
OpenProject::GitlabIntegration::Services::UpsertMergeRequest.new.call(payload,
- work_packages: work_packages)
+ work_packages:)
end
-
end
end
end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb
index 3c67dd3ad00..772b8e62562 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/push_hook.rb
@@ -33,10 +33,11 @@ module OpenProject::GitlabIntegration
# Handles Gitlab commit notifications.
class PushHook
include OpenProject::GitlabIntegration::NotificationHandler::Helper
-
+
def process(payload_params)
@payload = wrap_payload(payload_params)
return nil unless payload.object_kind == 'push'
+
payload.commits.each do |commit|
user = User.find_by_id(payload.open_project_user_id)
text = commit['title'] + " - " + commit['message']
@@ -53,15 +54,15 @@ module OpenProject::GitlabIntegration
def generate_notes(commit, payload)
commit_id = commit['id']
I18n.t("gitlab_integration.push_single_commit_comment",
- :commit_number => commit_id[0, 8],
- :commit_note => commit['message'],
- :commit_url => commit['url'],
- :commit_timestamp => commit['timestamp'],
- :repository => payload.repository.name,
- :repository_url => payload.repository.homepage,
- :gitlab_user => payload.user_name,
- :gitlab_user_url => payload.user_avatar)
+ commit_number: commit_id[0, 8],
+ commit_note: commit['message'],
+ commit_url: commit['url'],
+ commit_timestamp: commit['timestamp'],
+ repository: payload.repository.name,
+ repository_url: payload.repository.homepage,
+ gitlab_user: payload.user_name,
+ gitlab_user_url: payload.user_avatar)
end
end
end
-end
\ No newline at end of file
+end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb
index a23489a7ec3..72a56f1fb63 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handler/system_hook.rb
@@ -33,10 +33,11 @@ module OpenProject::GitlabIntegration
# Handles Gitlab commit notifications.
class SystemHook
include OpenProject::GitlabIntegration::NotificationHandler::Helper
-
+
def process(payload_params)
@payload = wrap_payload(payload_params)
return nil unless payload.object_kind == 'push'
+
payload.commits.each do |commit|
user = User.find_by_id(payload.open_project_user_id)
text = commit['title'] + " - " + commit['message']
@@ -53,14 +54,14 @@ module OpenProject::GitlabIntegration
def generate_notes(commit, payload)
commit_id = commit['id']
I18n.t("gitlab_integration.push_single_commit_comment",
- :commit_number => commit_id[0, 8],
- :commit_note => commit['message'],
- :commit_url => commit['url'],
- :commit_timestamp => commit['timestamp'],
- :repository => payload.repository.name,
- :repository_url => payload.repository.homepage,
- :gitlab_user => payload.user_name,
- :gitlab_user_url => payload.user_avatar)
+ commit_number: commit_id[0, 8],
+ commit_note: commit['message'],
+ commit_url: commit['url'],
+ commit_timestamp: commit['timestamp'],
+ repository: payload.repository.name,
+ repository_url: payload.repository.homepage,
+ gitlab_user: payload.user_name,
+ gitlab_user_url: payload.user_avatar)
end
end
end
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb
index 7c78293b649..e157bbddf65 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/notification_handlers.rb
@@ -27,15 +27,14 @@
# See docs/COPYRIGHT.rdoc for more details.
#++
-require_relative './notification_handler/helper'
-require_relative './notification_handler/issue_hook'
-require_relative './notification_handler/merge_request_hook'
-require_relative './notification_handler/note_hook'
-require_relative './notification_handler/push_hook'
-require_relative './notification_handler/system_hook'
+require_relative 'notification_handler/helper'
+require_relative 'notification_handler/issue_hook'
+require_relative 'notification_handler/merge_request_hook'
+require_relative 'notification_handler/note_hook'
+require_relative 'notification_handler/push_hook'
+require_relative 'notification_handler/system_hook'
module OpenProject::GitlabIntegration
-
##
# Handles gitlab-related notifications.
module NotificationHandlers
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb
index 833b51b908a..946032fc65a 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/patches/work_package_patch.rb
@@ -11,4 +11,4 @@ module OpenProject::GitlabIntegration
end
end
-::WorkPackage.include OpenProject::GitlabIntegration::Patches::WorkPackagePatch
+WorkPackage.include OpenProject::GitlabIntegration::Patches::WorkPackagePatch
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb
index 288dc428154..ea44e173521 100644
--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb
+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/services.rb
@@ -27,7 +27,7 @@
# See docs/COPYRIGHT.rdoc for more details.
#++
-require_relative './services/params_helper'
-require_relative './services/upsert_pipeline'
-require_relative './services/upsert_gitlab_user'
-require_relative './services/upsert_merge_request'
+require_relative 'services/params_helper'
+require_relative 'services/upsert_pipeline'
+require_relative 'services/upsert_gitlab_user'
+require_relative 'services/upsert_merge_request'
diff --git a/modules/gitlab_integration/openproject-gitlab_integration.gemspec b/modules/gitlab_integration/openproject-gitlab_integration.gemspec
index f26ebc62226..e09e8e63635 100644
--- a/modules/gitlab_integration/openproject-gitlab_integration.gemspec
+++ b/modules/gitlab_integration/openproject-gitlab_integration.gemspec
@@ -43,4 +43,5 @@ Gem::Specification.new do |s|
s.files = Dir['{app,config,db,frontend,lib}/**/*'] + %w[README.md]
s.add_dependency 'openproject-webhooks'
+ s.metadata['rubygems_mfa_required'] = 'true'
end
diff --git a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
index 73ede117dec..367df2f3934 100644
--- a/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
+++ b/modules/storages/app/components/storages/admin/oauth_access_grant_nudge_modal_component.rb
@@ -1,33 +1,33 @@
# frozen_string_literal: true
-#-- copyright
+# -- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
-#
+
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
-#
+
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
# Copyright (C) 2006-2013 Jean-Philippe Lang
# Copyright (C) 2010-2013 the ChiliProject Team
-#
+
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
+
# See COPYRIGHT and LICENSE files for more details.
-#++
-#
+# ++
+
module Storages::Admin
class OAuthAccessGrantNudgeModalComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent
options dialog_id: 'storages--oauth-grant-nudge-modal-component',