diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..b0f4393 --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,25 @@ +linters: + enable-all: true + disable: + # Deprecated + - varcheck + - ifshort + - interfacer + - maligned + - deadcode + - scopelint + - golint + - structcheck + - exhaustivestruct + - nosnakecase + # To extremist/unusable + - depguard + - varnamelen + - exhaustruct + - wsl + - contextcheck + - wrapcheck +linters-settings: + lll: + # Too short byt default + line-length: 160 diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..ad11d94 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,11 @@ +steps: + lint: + image: golang:1.22 + commands: + - go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + - golangci-lint run + when: + - event: pull_request + repo: gnouseu/plakken + - event: push + branch: main \ No newline at end of file