Skip to content

Commit

Permalink
run golangci-lint as GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Oct 26, 2020
1 parent e157c8a commit e5b6f12
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
on: [push, pull_request]
name: linter

jobs:
lint:
strategy:
matrix:
go-version: [1.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.32
13 changes: 13 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
linters:
enable:
- dogsled
- dupl
- gofmt
- goimports
- gosec
- misspell
- nakedret
- stylecheck
- unconvert
- unparam
- whitespace
1 change: 0 additions & 1 deletion query/encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ func TestIsEmptyValue(t *testing.T) {
want := tt.empty
if got != want {
t.Errorf("isEmptyValue(%v) returned %t; want %t", tt.value, got, want)

}
}
}
Expand Down

0 comments on commit e5b6f12

Please sign in to comment.