-
Notifications
You must be signed in to change notification settings - Fork 11
/
levels.go
45 lines (41 loc) · 998 Bytes
/
levels.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright (c) 2021, Marcelo Jorge Vieira
// Licensed under the BSD 3-Clause License
package rules
type Level struct {
Description string `json:"description" bson:"description"`
ID string `json:"id" bson:"id"`
Name string `json:"name" bson:"name"`
Total int32 `json:"total" bson:"total"`
}
const LevelError = "error"
const LevelExperimental = "experimental"
const LevelInfo = "info"
const LevelPedantic = "pedantic"
const LevelWarning = "warning"
var AllSeverities = map[string]Level{
LevelError: {
Description: "",
ID: LevelError,
Name: "Error",
},
LevelExperimental: {
Description: "",
ID: LevelExperimental,
Name: "Experimental",
},
LevelInfo: {
Description: "",
ID: LevelInfo,
Name: "Info",
},
LevelPedantic: {
Description: "",
ID: LevelPedantic,
Name: "Pedantic",
},
LevelWarning: {
Description: "",
ID: LevelWarning,
Name: "Warning",
},
}