From cc2b72462401d9d92f953afc684e5902c2dfdcb2 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Thu, 30 Nov 2023 13:38:20 +0100 Subject: [PATCH] ci: disable code duplication analysis for files under src/spec-types --- .sonarcloud.properties | 2 +- src/spec-types/v3.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.sonarcloud.properties b/.sonarcloud.properties index 98a487f3c..3a9937a7b 100644 --- a/.sonarcloud.properties +++ b/.sonarcloud.properties @@ -1,3 +1,3 @@ # Disable specific duplicate code since it would introduce more complexity to reduce it. -sonar.cpd.exclusions=src/models/**/*.ts +sonar.cpd.exclusions=src/models/**/*.ts,src/spec-types/*.ts sonar.exclusions=test/**/* diff --git a/src/spec-types/v3.ts b/src/spec-types/v3.ts index dfad71f7f..766df3bf9 100644 --- a/src/spec-types/v3.ts +++ b/src/spec-types/v3.ts @@ -297,7 +297,6 @@ export type SecuritySchemaLocation = | 'password' | 'query' | 'header' - | 'header' | 'cookie'; export interface SecuritySchemeObjectBase extends SpecificationExtensions {