lint: enable some more linters
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
linters:
|
linters:
|
||||||
enable-all: false
|
enable-all: false
|
||||||
enable:
|
enable:
|
||||||
|
- gosimple
|
||||||
|
- misspell
|
||||||
|
- gocyclo
|
||||||
|
- gofmt
|
||||||
- structcheck
|
- structcheck
|
||||||
- varcheck
|
- varcheck
|
||||||
- ineffassign
|
- ineffassign
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
func TestLabelTarget(t *testing.T) {
|
func TestLabelTarget(t *testing.T) {
|
||||||
expect := map[avo.Label]*avo.Instruction{
|
expect := map[avo.Label]*avo.Instruction{
|
||||||
"lblA": &avo.Instruction{Opcode: "A"},
|
"lblA": {Opcode: "A"},
|
||||||
"lblB": &avo.Instruction{Opcode: "B"},
|
"lblB": {Opcode: "B"},
|
||||||
}
|
}
|
||||||
|
|
||||||
f := avo.NewFunction("happypath")
|
f := avo.NewFunction("happypath")
|
||||||
|
|||||||
Reference in New Issue
Block a user