diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..c8455f4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,15 @@ +name: lint +on: + pull_request: +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version + version: latest + diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..7d80d9a --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,8 @@ +linters-settings: + staticcheck: + checks: ["all", "-SA1019"] +issues: + exclude-rules: + - path: example_test.go + linters: + - errcheck