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
linting
ulferts0bab7839b14c
diff --git a/app/services/api/parse_resource_params_service.rb b/app/services/api/parse_resource_params_service.rbindex 12086156ead..c781a654782 100644--- a/app/services/api/parse_resource_params_service.rb+++ b/app/services/api/parse_resource_params_service.rb@@ -58,7 +58,7 @@ module APIprivate- def deduce_representer(model)+ def deduce_representer(_model)raise NotImplementedErrorenddiff --git a/lib/api/utilities/endpoints/bodied.rb b/lib/api/utilities/endpoints/bodied.rbindex 839077ea61b..30c869b12fe 100644--- a/lib/api/utilities/endpoints/bodied.rb+++ b/lib/api/utilities/endpoints/bodied.rb@@ -141,7 +141,6 @@ module APIdef deduce_parse_representerraise NotImplementedError- #"::API::V3::#{deduce_api_namespace}::#{api_name}PayloadRepresenter".constantizeenddef deduce_parse_servicediff --git a/lib/api/utilities/endpoints/modify.rb b/lib/api/utilities/endpoints/modify.rbindex 4eea40f9d2a..2d410854ad9 100644--- a/lib/api/utilities/endpoints/modify.rb+++ b/lib/api/utilities/endpoints/modify.rb@@ -38,7 +38,7 @@ module APIprivate- def present_success(current_user, call)+ def present_success(_current_user, _call)raise NotImplementedErrorend@@ -79,10 +79,6 @@ module API"::#{deduce_backend_namespace}::#{update_or_create}Service".constantizeend- #def deduce_render_representer- # "::API::V3::#{deduce_api_namespace}::#{api_name}Representer".constantize- #end-def deduce_process_contractnilenddiff --git a/lib/api/v3/utilities/endpoints/index.rb b/lib/api/v3/utilities/endpoints/index.rbindex f39ae751e9d..67b7e7339fd 100644--- a/lib/api/v3/utilities/endpoints/index.rb+++ b/lib/api/v3/utilities/endpoints/index.rb@@ -33,16 +33,6 @@ module APIclass Index < API::Utilities::Endpoints::Indexinclude ::API::Utilities::PageSizeHelper- def initialize(model:,- api_name: model.name.demodulize,- scope: nil,- render_representer: nil)- self.model = model_class(model)- self.scope = scope- self.api_name = api_name- self.render_representer = render_representer || deduce_render_representer- end-def mountindex = selfdiff --git a/modules/bcf/app/controllers/bcf/api/v2_1/endpoints/update.rb b/modules/bcf/app/controllers/bcf/api/v2_1/endpoints/update.rbindex 81e9e886743..537270d9499 100644--- a/modules/bcf/app/controllers/bcf/api/v2_1/endpoints/update.rb+++ b/modules/bcf/app/controllers/bcf/api/v2_1/endpoints/update.rb@@ -30,7 +30,7 @@module Bcf::API::V2_1::Endpointsclass Update < API::Utilities::Endpoints::Update- def present_success(current_user, call)+ def present_success(_current_user, call)render_representer.new(call.result)enddiff --git a/modules/bcf/app/controllers/bcf/api/v2_1/projects_api.rb b/modules/bcf/app/controllers/bcf/api/v2_1/projects_api.rbindex 20fb68aefd1..26c5d7ec120 100644--- a/modules/bcf/app/controllers/bcf/api/v2_1/projects_api.rb+++ b/modules/bcf/app/controllers/bcf/api/v2_1/projects_api.rb@@ -54,4 +54,4 @@ module Bcf::API::V2_1endendend-end\ No newline at end of file+enddiff --git a/modules/bcf/spec/features/bcf_api_authorization.rb b/modules/bcf/spec/features/bcf_api_authorization.rbindex 26c29ea4f0e..55d76f8260c 100644--- a/modules/bcf/spec/features/bcf_api_authorization.rb+++ b/modules/bcf/spec/features/bcf_api_authorization.rb@@ -63,8 +63,10 @@ describe 'authorization for BCF api', type: :feature, js: true doexpect(page).to have_selector('.flash.notice', text: 'Successful creation.')- expect(page).to have_selector('.attributes-key-value--key', text: 'Client ID')- expect(page).to have_selector('.attributes-key-value--value', text: "urn:ietf:wg:oauth:2.0:oob\nhttps://localhost/my/callback")+ expect(page).to have_selector('.attributes-key-value--key',+ text: 'Client ID')+ expect(page).to have_selector('.attributes-key-value--value',+ text: "urn:ietf:wg:oauth:2.0:oob\nhttps://localhost/my/callback")# Should print secret on initial visitexpect(page).to have_selector('.attributes-key-value--key', text: 'Client secret')diff --git a/modules/bcf/spec/requests/api/bcf/v2_1/shared_responses.rb b/modules/bcf/spec/requests/api/bcf/v2_1/shared_responses.rbindex bd671ab8234..63b5257a5d3 100644--- a/modules/bcf/spec/requests/api/bcf/v2_1/shared_responses.rb+++ b/modules/bcf/spec/requests/api/bcf/v2_1/shared_responses.rb@@ -105,4 +105,3 @@ shared_examples_for 'bcf api unprocessable response' do.to eql 'application/json; charset=utf-8'endend-