diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml new file mode 100644 index 0000000..afcf3d8 --- /dev/null +++ b/.github/workflows/golangci-lint.yaml @@ -0,0 +1,19 @@ +name: GolangCI-Lint +on: + pull_request: + push: + branches: + - "master" + +jobs: + lint: + name: GolangCI-Lint + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + + - uses: golangci/golangci-lint-action@v3 + with: + # https://github.com/golangci/golangci-lint/releases/tag/v1.55.2 + version: v1.55.2 diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..0e5d17b --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,25 @@ +issues: + exclude-use-default: false + +linters: + enable-all: true + disable: + # Linters that are deprecated. + - deadcode + - exhaustivestruct + - golint + - ifshort + - interfacer + - maligned + - nosnakecase + - scopelint + - structcheck + - varcheck + +linters-settings: + goheader: + template: |- + Copyright Josh Komoroske. All rights reserved. + Use of this source code is governed by the MIT license, + a copy of which can be found in the LICENSE.txt file. + SPDX-License-Identifier: MIT