Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complicated linting #1524

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

More complicated linting #1524

wants to merge 1 commit into from

Commits on Apr 13, 2022

  1. More complicated linting

    Checked linter warnings using:
    
         CGO_ENABLED=0 golangci-lint run --enable-all --disable testpackage,paralleltest,funlen,dupl,exhaustive,nakedret,noctx,nlreturn,gomnd,gochecknoglobals,gochecknoinits,interfacer,exhaustivestruct,wsl,lll,nestif,godox,gocyclo,gocognit,gomodguard,maligned,stylecheck,gosec,forbidigo,goconst,wrapcheck,staticcheck ./...
    
    - Got rid of dynamic errors (errors.New())
    - Using errors.Is() / errors.As() to test errors
    - Added t.Helper() to test helpers
    - Fixed InMemoryCache (use pointer receiver, don't copy or locks break)
    - Simplified code in various places
    - Aligned closer to standards
    ptman committed Apr 13, 2022
    Configuration menu
    Copy the full SHA
    5110d34 View commit details
    Browse the repository at this point in the history