Skip to content

Commit

Permalink
chore: add ts-nocheck for configureGit function
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawkyZ committed Oct 14, 2024
1 parent 87ad87b commit 2997997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/snyk/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ class SnykExtension extends SnykLib implements IExtension {

try {
await this.initializeExtension(vscodeContext, snykConfiguration);
await this.configureGitHandlers();
this.configureGitHandlers();
} catch (e) {
ErrorHandler.handle(e, Logger);
}
}

// @ts-nocheck: we use any to prevent loading types from external extension

Check failure on line 103 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Do not use "@ts-nocheck" because it alters compilation errors

Check failure on line 103 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Do not use "@ts-nocheck" because it alters compilation errors
private configureGitHandlers(): void {
// Get the Git extension
const gitExtension = vscode.extensions.getExtension('vscode.git')?.exports;
Expand All @@ -113,7 +114,6 @@ class SnykExtension extends SnykLib implements IExtension {

// Check if there are any repositories
const repositories = git?.repositories;

Check failure on line 116 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Unsafe member access .repositories on an `any` value

Check failure on line 116 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Unsafe member access .repositories on an `any` value

if (!repositories || repositories.length === 0) {

Check failure on line 117 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (ubuntu-latest)

Unsafe member access .length on an `any` value

Check failure on line 117 in src/snyk/extension.ts

View workflow job for this annotation

GitHub Actions / Build and Test (macos-latest)

Unsafe member access .length on an `any` value
return;
}
Expand Down

0 comments on commit 2997997

Please sign in to comment.