@@ -1166,7 +1166,6 @@ class MultiRootManager {
11661166 }
11671167
11681168 const duplicates = rootPathsAndLabels . filter (
1169- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Guarded by !== undefined check
11701169 ( rootPathAndLabel ) => duplicateMap . get ( rootPathAndLabel . rootLabel ) !== undefined && duplicateMap . get ( rootPathAndLabel . rootLabel ) ! . length > 1 ,
11711170 ) ;
11721171
@@ -1205,7 +1204,6 @@ class MultiRootManager {
12051204
12061205 // Second pass over the array to process duplicates
12071206 const duplicates = rootPathsAndLabels . filter (
1208- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Guarded by !== undefined check
12091207 ( rootPathAndLabel ) => duplicateMap . get ( rootPathAndLabel . rootLabel ) !== undefined && duplicateMap . get ( rootPathAndLabel . rootLabel ) ! . length > 1 ,
12101208 ) ;
12111209 for ( const duplicateEntry of duplicates ) {
@@ -1870,7 +1868,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
18701868 endLine : loc . endLine ,
18711869 label : loc . label ,
18721870 description : loc . description ,
1873- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Checked in earlier for loop (lines 1840-1843)
18741871 rootPath : wsRoot ! . rootPath ,
18751872 } as FullLocation ;
18761873 } ) ,
@@ -1980,7 +1977,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
19801977 endLine : loc . endLine ,
19811978 label : loc . label ,
19821979 description : loc . description ,
1983- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Checked in earlier for loop (lines 1928-1936)
19841980 rootPath : wsRoot ! . rootPath ,
19851981 } as FullLocation ;
19861982 } ) ,
@@ -2156,7 +2152,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
21562152 const allRoots : Set < WARoot > = new Set (
21572153 entry . locations . map ( ( loc ) => {
21582154 const [ wsRoot ] = this . workspaces . getCorrespondingRootAndPath ( loc . path ) ;
2159- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Callers ensure paths are within workspace roots
21602155 return wsRoot ! ;
21612156 } ) ,
21622157 ) ;
@@ -2292,7 +2287,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
22922287 * refreshing the tree.
22932288 */
22942289 loadTreeViewModeConfiguration ( ) : void {
2295- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Configuration has default value in package.json
22962290 const mode : string = vscode . workspace . getConfiguration ( "weAudit" ) . get ( "general.treeViewMode" ) ! ;
22972291 if ( mode === "list" ) {
22982292 this . treeViewMode = TreeViewMode . List ;
@@ -2435,7 +2429,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
24352429 // count the LOC per day
24362430 const fullPaths = files . map ( ( [ fullPath ] ) => path . join ( fullPath . rootPath , fullPath . path ) ) ;
24372431 const wcProc = spawnSync ( "wc" , [ "-l" , ...fullPaths ] ) ;
2438- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- spawnSync always populates output[1] (stdout)
24392432 const output = wcProc . output [ 1 ] ! ;
24402433 // wc outputs a final total line.
24412434 // We get the LOC from that line by finding the first newline from the end.
@@ -3790,7 +3783,6 @@ export class CodeMarker implements vscode.TreeDataProvider<TreeEntry> {
37903783 // Therefore, we create unique paths by prepending the workspace root directory name
37913784 if ( this . workspaces . moreThanOneRoot ( ) ) {
37923785 // We know that the unique path creation succeeds, because we are calling it directly on a WARoot's path
3793- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
37943786 pathLabel = this . workspaces . createUniquePath ( wsRoot . rootPath , relativePath ) ! ;
37953787 } else {
37963788 pathLabel = relativePath ;
0 commit comments