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

libbpfgo: run lint tool and fix issues #54

Merged
merged 1 commit into from
Aug 23, 2021
Merged

libbpfgo: run lint tool and fix issues #54

merged 1 commit into from
Aug 23, 2021

Conversation

rafaeldtinoco
Copy link
Contributor

$ golangci-lint run -E asciicheck -E bodyclose
-E depguard -E dogsled -E dupl -E durationcheck -E errorlint
-E exhaustive -E exportloopref
-E forcetypeassert -E gci
-E gochecknoinits -E gocognit -E goconst -E gocritic
-E godox -E gofmt -E gofumpt -E goheader
-E goimports -E gomoddirectives -E gomodguard
-E goprintffuncname -E gosec -E importas
-E lll -E makezero -E misspell
-E nakedret -E nestif -E nilerr -E nlreturn -E noctx -E nolintlint
-E paralleltest -E prealloc -E predeclared -E promlinter -E revive
-E rowserrcheck -E stylecheck
-E tagliatelle -E testpackage -E thelper -E tparallel -E unconvert
-E unparam -E wastedassign -E whitespace -E wsl

@rafaeldtinoco rafaeldtinoco mentioned this pull request Aug 19, 2021
@rafaeldtinoco
Copy link
Contributor Author

Should we add a lint test for this repo ?

$ golangci-lint run -E asciicheck -E bodyclose \
    -E depguard -E dogsled -E dupl -E durationcheck -E errorlint \
    -E exhaustive -E exportloopref \
    -E forcetypeassert -E gci \
    -E gochecknoinits -E gocognit -E goconst -E gocritic \
    -E godox -E gofmt -E gofumpt -E goheader \
    -E goimports -E gomoddirectives -E gomodguard \
    -E goprintffuncname -E gosec -E importas \
    -E lll -E makezero -E misspell \
    -E nakedret -E nestif -E nilerr -E nlreturn -E noctx -E nolintlint \
    -E paralleltest -E prealloc -E predeclared -E promlinter -E revive \
    -E rowserrcheck -E stylecheck \
    -E tagliatelle -E thelper -E tparallel -E unconvert \
    -E unparam -E wastedassign -E whitespace -E wsl
@rafaeldtinoco
Copy link
Contributor Author

@grantseltzer what is your take on this one ? Should we care and fix all this ? Open an issue to integrate linter ?

This started because of an observation in a post-done merge (#50) from @itaysk.

@rafaeldtinoco rafaeldtinoco self-assigned this Aug 23, 2021
Copy link
Contributor

@grantseltzer grantseltzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll open an issue to add this to makefile/action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants