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

linter: fixes for staticcheck #27

Merged
merged 1 commit into from Sep 28, 2022
Merged

linter: fixes for staticcheck #27

merged 1 commit into from Sep 28, 2022

Commits on Sep 22, 2022

  1. linter: move to staticcheck

    As golint is now deprecated, this patch proposes to
    switch to staticcheck [0] as an alternative, in addition
    to `go vet`.
    This patch contains fixes addressing the linter's reported
    issues, with two added exceptions :
    - The MemoryStats deprectated fields are still for us to update
    - In `gen_encoding.go` we need to add an extra comment
    to account for the unused variable. This is probably worth
    addressing in another patch to not generate a variable we don't use.
    
    [0] https://staticcheck.io/
    
    Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
    Change-Id: I0562f290fb908bc610c44d675e21e466d0badc27
    sknat committed Sep 22, 2022
    Configuration menu
    Copy the full SHA
    41120f7 View commit details
    Browse the repository at this point in the history