Compare commits

..

No commits in common. "fa8a0c95eecafdff46beb276b9d64d640996d5c1" and "0e036c7c7df243e4630b66cc7bbb87aa8922dd36" have entirely different histories.

2 changed files with 14 additions and 34 deletions

View file

@ -1,22 +0,0 @@
on: [push]
jobs:
linting:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- uses: https://github.com/golangci/golangci-lint-action@v4
tests:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Install dependencies
run: go get .
- name: Run tests
run: go test

View file

@ -324,6 +324,8 @@ linters-settings:
# minimal confidence for issues, default is 0.8 # minimal confidence for issues, default is 0.8
min-confidence: 0.8 min-confidence: 0.8
gomnd:
settings:
mnd: mnd:
# the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description. # the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
checks: argument,case,condition,operation,return,assign checks: argument,case,condition,operation,return,assign
@ -393,6 +395,9 @@ linters-settings:
checks: [ "all" ] checks: [ "all" ]
govet: govet:
# report about shadowed variables
check-shadowing: true
# settings per analyzer # settings per analyzer
#settings: #settings:
# printf: # analyzer name, run `go tool vet help` to see all analyzers # printf: # analyzer name, run `go tool vet help` to see all analyzers
@ -406,7 +411,7 @@ linters-settings:
# run `go tool vet help` to see all analyzers # run `go tool vet help` to see all analyzers
#enable: #enable:
# - atomicalign # - atomicalign
enable-all: false #enable-all: false
#disable: #disable:
# - shadow # - shadow
#disable-all: false #disable-all: false
@ -670,13 +675,10 @@ linters:
disable: disable:
- depguard - depguard
- dogsled - dogsled
- execinquery # deprecated
- exhaustivestruct - exhaustivestruct
- exhaustruct
- godox - godox
- goheader - goheader
- golint - golint
- gomnd # deprecated
- interfacer - interfacer
- ireturn - ireturn
- maligned - maligned