File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
internal/clients/diffreviewer Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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:
Original file line number Diff line number Diff 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+
1517const (
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
You can’t perform that action at this time.
0 commit comments