Skip to content

Commit 97303f2

Browse files
pavinduLakshanCopilot
andcommitted
Update knip config to include unused exported enum members and unlisted dependencies
Co-authored-by: Copilot <copilot@github.com>
1 parent b83aa5a commit 97303f2

4 files changed

Lines changed: 9 additions & 34 deletions

File tree

.github/workflows/pr-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
id: install-dependencies
6666
run: pnpm install
6767

68-
- name: 🔪 Run Knip
68+
- name: ✂️ Run Knip
6969
id: run-knip
7070
# Knip findings and runtime failures will fail CI.
7171
run: pnpm knip:ci

features/admin.applications.v1/models/application-inbound.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ export enum SupportedAuthProtocolName {
279279
export enum DefaultProtocolTemplate {
280280
SAML = "default-saml",
281281
OIDC = "default-oidc",
282-
WS_FEDERATION = "default-ws-federation",
283-
WS_TRUST = "default-ws-trust"
282+
WS_FEDERATION = "default-ws-federation"
284283
}
285284

286285
/**

knip.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://unpkg.com/knip@latest/schema.json",
3-
"include": ["files", "duplicates"],
3+
"include": ["files", "duplicates", "enumMembers", "unlisted"],
44
"ignore": [
55
"**/dist/**",
66
"**/build/**",
@@ -19,6 +19,11 @@
1919
"features/admin.applications.v1/components/application-danger-zone.tsx",
2020
"features/admin.extensions.v1/configs/components/application-general-tab-overide.tsx"
2121
],
22+
"ignoreIssues": {
23+
"features/common.branding.v1/models/branding-preferences.ts": ["enumMembers"],
24+
"features/admin.identity-providers.v1/models/identity-provider.ts": ["enumMembers"],
25+
"features/admin.applications.v1/models/application-inbound.ts": ["enumMembers"]
26+
},
2227
"ignoreDependencies": [
2328
"babel-polyfill",
2429
"react-app-polyfill",

modules/core/src/models/http.ts

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -78,36 +78,7 @@ export enum AcceptHeaderValues {
7878
* @enum {string}
7979
*/
8080
export enum ContentTypeHeaderValues {
81-
/**
82-
* Value for JSON type content type entity header.
83-
*
84-
* @type {string}
85-
*/
86-
APP_JSON = "application/json",
87-
/**
88-
* Value for XML type content type entity header.
89-
*
90-
* @type {string}
91-
*/
92-
APP_XML = "application/xml",
93-
/**
94-
* Value for javascript type content type entity header.
95-
*
96-
* @type {string}
97-
*/
98-
APP_JAVASCRIPT = "application/javascript",
99-
/**
100-
* Value for form type content type entity header.
101-
*
102-
* @type {string}
103-
*/
104-
APP_FORM = "application/x-www-form-urlencoded",
105-
/**
106-
* Value for SCIM type content type entity header.
107-
*
108-
* @type {string}
109-
*/
110-
APP_SCIM = "application/scim+json"
81+
APP_JSON = "application/json"
11182
}
11283

11384
/**

0 commit comments

Comments
 (0)