Skip to content

Commit

Permalink
Set up golangci-lint config and fix 2 files
Browse files Browse the repository at this point in the history
Signed-off-by: Phil Estes <estesp@amazon.com>
  • Loading branch information
estesp committed Mar 14, 2021
1 parent 2e3cd2d commit fc884cf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.16.2
go-version: 1.16.x

- name: Set env
shell: bash
Expand All @@ -40,7 +40,7 @@ jobs:

strategy:
matrix:
go-version: [1.16.2]
go-version: [1.16.x]
os: [ubuntu-18.04]

steps:
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: 1.16.2
go-version: 1.16.x

- name: Set env
shell: bash
Expand All @@ -80,6 +80,6 @@ jobs:
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- run: |
go test -v -race -covermode=atomic -coverprofile=coverage.txt ./...
go test -v -race -covermode=atomic -coverprofile=coverage.txt -test.root -exec "sudo -n" ./...
bash <(curl -s https://codecov.io/bash)
working-directory: src/github.com/containerd/aufs
22 changes: 22 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
linters:
enable:
- structcheck
- varcheck
- staticcheck
- unconvert
- gofmt
- goimports
- golint
- ineffassign
- vet
- unused
- misspell
disable:
- errcheck

issues:
include:
- EXC0002

run:
timeout: 2m
1 change: 0 additions & 1 deletion aufs.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import (
"github.com/pkg/errors"
)


var (
dirperm sync.Once
dirpermEnabled bool
Expand Down
1 change: 0 additions & 1 deletion plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"github.com/pkg/errors"
)


// Config represents configuration for the zfs plugin
type Config struct {
// Root directory for the plugin
Expand Down

0 comments on commit fc884cf

Please sign in to comment.