Skip to content

Commit 30c9358

Browse files
authored
add links to source (#51)
1 parent eb2a2c2 commit 30c9358

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/clients/diffreviewer/diff_reviewer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ type Comment struct {
2727
LineNumber int
2828
}
2929

30+
// Git Structs from https://github.com/reviewdog/reviewdog/blob/master/diff/diff.go
31+
3032
// FileDiff represents a unified diff for a single file.
3133
//
3234
// Example:

internal/clients/diffreviewer/diffutils/diff_parser.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"github.com/nightfallai/nightfall_code_scanner/internal/clients/diffreviewer"
1313
)
1414

15+
// Diff Parsing Code from https://github.com/reviewdog/reviewdog/blob/master/diff/parse.go
16+
1517
const (
1618
tokenDiffGit = "diff --git" // diff --git a/sample.old.txt b/sample.new.txt
1719
tokenOldFile = "---" // --- sample.old.txt 2016-10-13 05:09:35.820791185 +0900

0 commit comments

Comments
 (0)