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:
parent
7e21abe7d1
commit
84ae42bcde
5 changed files with 7 additions and 6 deletions
3
.github/workflows/linter.yml
vendored
3
.github/workflows/linter.yml
vendored
|
@ -16,6 +16,3 @@ jobs:
|
|||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.31
|
||||
|
||||
- name: Run go fmt
|
||||
run: diff -u <(echo -n) <(gofmt -d -s .)
|
||||
|
|
6
.golangci.yml
Normal file
6
.golangci.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
linters:
|
||||
enable:
|
||||
- goimports
|
||||
- stylecheck
|
||||
- misspell
|
||||
- whitespace
|
|
@ -209,5 +209,4 @@ func TestNewRequest_BaseURL(t *testing.T) {
|
|||
if got := r.String(); got != want {
|
||||
t.Errorf("NewRequest(%v, %v) returned %q, want %q", req, base, got, want)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -110,7 +110,6 @@ func TestCopyHeader(t *testing.T) {
|
|||
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)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue