Skip to content

Commit

Permalink
Add ticket link in TODO (#58)
Browse files Browse the repository at this point in the history
* Add ticket link in TODO

* Link another TODO to SDS-301
  • Loading branch information
vinckama committed May 29, 2024
1 parent c425920 commit 63f9cff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sds-go/go/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ type ProximityKeywordsConfig struct {
// RuleMatch stores the matches reported by the core library.
type RuleMatch struct {
RuleIdx uint32
// TODO(remy): not implemented yet.
Path string
Path string
// TODO(https://datadoghq.atlassian.net/browse/SDS-301): implement replacement type
ReplacementType MatchAction
StartIndex uint32
EndIndexExclusive uint32
Expand Down
2 changes: 1 addition & 1 deletion sds-go/go/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func decodeMatchResponse(result *ScanResult, buf *bytes.Buffer) {
path := nextString(buf)

// then a replacement type
// TODO(remy): implement me
// TODO(https://datadoghq.atlassian.net/browse/SDS-301): implement replacement type
//replacementType := nextString(buf)
nextString(buf)

Expand Down
5 changes: 4 additions & 1 deletion sds-go/go/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,9 @@ func sortRulesMatch(left, right RuleMatch) bool {
if left.EndIndexExclusive > right.EndIndexExclusive {
return true
}
// TODO(remy): path, replacement type
if left.Path > right.Path {
return true
}
// TODO(https://datadoghq.atlassian.net/browse/SDS-301): implement replacement type
return false
}

0 comments on commit 63f9cff

Please sign in to comment.