Skip to content

Commit

Permalink
Add some more linters
Browse files Browse the repository at this point in the history
  • Loading branch information
Peltoche committed Oct 13, 2018
1 parent e1255b0 commit b2557fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ linters-settings:
linters:
enable-all: true
disable:
- maligned
- lll
- dupl

issues:
Expand Down
3 changes: 2 additions & 1 deletion specs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func Test_NewSpecsFromRaw_with_unmarshalable_content(t *testing.T) {
specs, err := NewSpecsFromRaw([]byte("no a valid spec"))

assert.Nil(t, specs)
assert.EqualError(t, err, "analyzed: yaml: unmarshal errors:\n line 1: cannot unmarshal !!str `no a va...` into map[interface {}]interface {}")
assert.EqualError(t, err, "analyzed: yaml: unmarshal errors:\n"+
" line 1: cannot unmarshal !!str `no a va...` into map[interface {}]interface {}")
}

func Test_NewSpecsFromFile_with_multi_file_spec_and_invalid_ref_should_fail(t *testing.T) {
Expand Down

0 comments on commit b2557fb

Please sign in to comment.