lint: enable some more linters

This commit is contained in:
Michael McLoughlin
2018-12-31 11:01:50 -08:00
parent c62e40f8d2
commit c79a926930
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
linters: linters:
enable-all: false enable-all: false
enable: enable:
- gosimple
- misspell
- gocyclo
- gofmt
- structcheck - structcheck
- varcheck - varcheck
- ineffassign - ineffassign

View File

@@ -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")