Skip to content

Commit 0c7eb38

Browse files
committed
sarif to ocsf transformer and tests
1 parent a908d9f commit 0c7eb38

9 files changed

+57673
-0
lines changed

sarif/internal/levels/levels.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package sarif
2+
3+
const (
4+
LevelError = "error"
5+
LevelWarning = "warning"
6+
LevelNote = "note"
7+
LevelNone = "none"
8+
)

sarif/internal/ptr/ptr.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package ptr
2+
3+
// Ptr returns the pointer to the passed value.
4+
func Ptr[T any](v T) *T {
5+
return &v
6+
}

0 commit comments

Comments
 (0)