Skip to content

Commit 57f6d92

Browse files
committed
chore: change Knip dep_scan to warning mode for template repo
1 parent 8e2d2f9 commit 57f6d92

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
-Dsonar.tests.inclusions=**/*spec.ts
5353
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
5454
sonar_token: ${{ env.SONAR_TOKEN }}
55-
dep_scan: error
55+
dep_scan: warning
5656
supply_scan: true
5757
triggers: ('backend/')
5858

@@ -80,7 +80,7 @@ jobs:
8080
-Dsonar.tests.inclusions=**/*spec.ts
8181
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
8282
sonar_token: ${{ env.SONAR_TOKEN }}
83-
dep_scan: error
83+
dep_scan: warning
8484
supply_scan: true
8585
triggers: ('frontend/')
8686

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ Dependabot is no longer recommended as an alternative to Renovate for generating
180180

181181
This repository uses [Knip](https://knip.dev/) for dependency scanning to identify unused dependencies and exports. Knip runs automatically as part of the Analysis workflow via the `bcgov/action-test-and-analyse` action.
182182

183+
**Note:** As a template repository, Knip runs in **warning mode** (non-blocking) to allow teams to customize dependencies without build failures. Teams can optionally change `dep_scan: warning` to `dep_scan: error` in their forks to enforce dependency scanning as a blocking check.
184+
183185
### 📋 Handling Unused Dependencies
184186

185187
When Knip identifies unused dependencies, you have two options:

0 commit comments

Comments
 (0)