Skip to content

Commit 5110218

Browse files
authored
SCANNPM-100 Add knip (#216)
1 parent 7119e61 commit 5110218

File tree

7 files changed

+526
-171
lines changed

7 files changed

+526
-171
lines changed

.cirrus.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,15 @@ qa_win_task:
8989
<<: *INSTANCE_DEFINITION
9090
<<: *QA_SCRIPT_DEFINITION
9191

92+
knip_task:
93+
<<: *CONTAINER_DEFINITION
94+
depends_on:
95+
- build
96+
knip_script:
97+
- npm install --no-package-lock
98+
- npm run build
99+
- npx knip
100+
92101
analyze_task:
93102
alias: analyze
94103
<<: *CONTAINER_DEFINITION

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.pmgrc.toml

Lines changed: 0 additions & 24 deletions
This file was deleted.

knip.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"workspaces": {
3+
".": {
4+
"entry": ["bin/sonar-scanner.ts", "test/integration/scanner.test.js", "src/index.ts"],
5+
"project": "src/*.ts"
6+
},
7+
"tools/orchestrator": {
8+
"entry": ["scripts/*"],
9+
"ignore": ["dist/**/*"]
10+
}
11+
},
12+
"ignore": ["build/**/*", "**/fixtures/**/*", "scripts/ci-analysis.js"],
13+
"ignoreDependencies": ["@sonar/scan"]
14+
}

0 commit comments

Comments
 (0)