Skip to content

Commit 08cb976

Browse files
committedMay 25, 2022
Analysis: use reanalyze 2.21.
Use specifically `reanalyze@2.21.0` when starting dead code analysis. This allows to configure the analysis via `bsconfig.json`.
1 parent cb7541e commit 08cb976

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎analysis/tests/bsconfig.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"name": "test",
3+
"reanalyze": {
4+
"analysis": ["dce"]
5+
},
36
"sources": [
47
{
58
"dir": "src",

‎client/src/commands/dead_code_analysis.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const runDeadCodeAnalysisWithReanalyze = (
213213
let currentDocument = window.activeTextEditor.document;
214214
let cwd = targetDir ?? path.dirname(currentDocument.uri.fsPath);
215215

216-
let p = cp.spawn("npx", ["reanalyze", "-config"], {
216+
let p = cp.spawn("npx", ["reanalyze@2.21.0", "-config"], {
217217
cwd,
218218
});
219219

0 commit comments

Comments
 (0)
Please sign in to comment.