Add and fix exhaustive
This commit is contained in:
parent
0315f55fcd
commit
19cd7a4eac
|
@ -43,7 +43,6 @@ linters:
|
||||||
- forbidigo
|
- forbidigo
|
||||||
- dupl
|
- dupl
|
||||||
- goconst
|
- goconst
|
||||||
- exhaustive
|
|
||||||
- varnamelen
|
- varnamelen
|
||||||
|
|
||||||
# We might want to enable this, but it might be a lot of work
|
# We might want to enable this, but it might be a lot of work
|
||||||
|
|
|
@ -23,6 +23,8 @@ func main() {
|
||||||
colors = true
|
colors = true
|
||||||
case termcolor.LevelBasic:
|
case termcolor.LevelBasic:
|
||||||
colors = true
|
colors = true
|
||||||
|
case termcolor.LevelNone:
|
||||||
|
colors = false
|
||||||
default:
|
default:
|
||||||
// no color, return text as is.
|
// no color, return text as is.
|
||||||
colors = false
|
colors = false
|
||||||
|
|
Loading…
Reference in New Issue