0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

golangci: enable additional checks

This commit is contained in:
Will Norris 2020-09-09 23:28:59 -07:00
parent 7e21abe7d1
commit 84ae42bcde
5 changed files with 7 additions and 6 deletions

View file

@ -16,6 +16,3 @@ jobs:
uses: golangci/golangci-lint-action@v2 uses: golangci/golangci-lint-action@v2
with: with:
version: v1.31 version: v1.31
- name: Run go fmt
run: diff -u <(echo -n) <(gofmt -d -s .)

6
.golangci.yml Normal file
View file

@ -0,0 +1,6 @@
linters:
enable:
- goimports
- stylecheck
- misspell
- whitespace

View file

@ -209,5 +209,4 @@ func TestNewRequest_BaseURL(t *testing.T) {
if got := r.String(); got != want { if got := r.String(); got != want {
t.Errorf("NewRequest(%v, %v) returned %q, want %q", req, base, got, want) t.Errorf("NewRequest(%v, %v) returned %q, want %q", req, base, got, want)
} }
} }

View file

@ -110,7 +110,6 @@ func TestCopyHeader(t *testing.T) {
if !reflect.DeepEqual(got, tt.want) { if !reflect.DeepEqual(got, tt.want) {
t.Errorf("copyHeader(%v, %v, %v) returned %v, want %v", tt.dst, tt.src, tt.keys, got, tt.want) t.Errorf("copyHeader(%v, %v, %v) returned %v, want %v", tt.dst, tt.src, tt.keys, got, tt.want)
} }
} }
} }