Skip to content

Commit

Permalink
fix(ignore-secret): Use relative path in .gitguardian.yaml (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
salome-voltz authored Sep 25, 2024
1 parent a54a439 commit d8e42c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/giguardian-interface/gitguardian-hover-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,5 +67,5 @@ export function generateSecretName(
currentFile: string,
uriDiagnostic: any
): string {
return `${uriDiagnostic.detector} - ${currentFile}:l.${uriDiagnostic.startLine}`;
return `${uriDiagnostic.detector} - ${vscode.workspace.asRelativePath(currentFile)}:l.${uriDiagnostic.startLine}`;
}

0 comments on commit d8e42c7

Please sign in to comment.