fixing regex, ready for tests
This commit is contained in:
30
issue/issue.go
Normal file
30
issue/issue.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package issue
|
||||
|
||||
const (
|
||||
FATAL IssueLevel = "FATAL"
|
||||
WARNING IssueLevel = "WARNING"
|
||||
PASSED IssueLevel = "PASSED"
|
||||
)
|
||||
|
||||
type IssueLevel string
|
||||
|
||||
type Issue struct {
|
||||
Level IssueLevel
|
||||
Safe bool
|
||||
Messages []string
|
||||
}
|
||||
|
||||
func (i *Issue) Passed() {
|
||||
i.Level = PASSED
|
||||
i.Safe = true
|
||||
}
|
||||
|
||||
func (i *Issue) Warning() {
|
||||
i.Level = WARNING
|
||||
i.Safe = true
|
||||
}
|
||||
|
||||
func (i *Issue) Fatal() {
|
||||
i.Level = FATAL
|
||||
i.Safe = false
|
||||
}
|
||||
Reference in New Issue
Block a user