-
Notifications
You must be signed in to change notification settings - Fork 138
/
gosec.go
30 lines (26 loc) · 901 Bytes
/
gosec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2019 Globo.com authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package types
// GosecOutput is the struct that holds all data from Gosec output.
type GosecOutput struct {
GosecIssues []GosecIssue `json:"Issues"`
GosecStats GosecStats `json:"Stats"`
}
// GosecIssue is the struct that holds all issues from Gosec output.
type GosecIssue struct {
Severity string `json:"severity"`
Confidence string `json:"confidence"`
RuleID string `json:"rule_id"`
Details string `json:"details"`
File string `json:"file"`
Code string `json:"code"`
Line string `json:"line"`
}
// GosecStats is the struct that holds all stats from Gosec output.
type GosecStats struct {
Files int `json:"files"`
Lines int `json:"lines"`
Nosec int `json:"nosec"`
Found int `json:"found"`
}