feat(git): disable link generation (#1748)

Add an option to disable link creation. If there are any weird edge cases, it shouldn't block scanning
This commit is contained in:
Richard Gomez authored and GitHub committed 2025-02-10 13:15:44 -06:00
1 parent c6424a6fc3
commit ae26eff464
6 files changed
+27 -26

No files matched your search

+2 -5
View File
@@ -614,9 +614,7 @@ func TestFromGit(t *testing.T) {
gitCmd, err := sources.NewGitLogCmd(tt.source, tt.logOpts)
require.NoError(t, err)
remote, err := NewRemoteInfo(scm.NoPlatform, tt.source)
require.NoError(t, err)
remote := NewRemoteInfo(scm.UnknownPlatform, tt.source)
findings, err := detector.DetectGit(gitCmd, remote)
require.NoError(t, err)
@@ -688,8 +686,7 @@ func TestFromGitStaged(t *testing.T) {
require.NoError(t, err)
gitCmd, err := sources.NewGitDiffCmd(tt.source, true)
require.NoError(t, err)
remote, err := NewRemoteInfo(scm.NoPlatform, tt.source)
require.NoError(t, err)
remote := NewRemoteInfo(scm.UnknownPlatform, tt.source)
findings, err := detector.DetectGit(gitCmd, remote)
require.NoError(t, err)