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

ci: add unparam linter #158

Merged
merged 2 commits into from
Oct 1, 2024
Merged

ci: add unparam linter #158

merged 2 commits into from
Oct 1, 2024

Commits on Sep 30, 2024

  1. mountinfo: simplify test prep

    1. Drop the last argument of tMount as it's always "".
    
    2. Drop the error return of tMount, instead use t.Fatal.
    
    3. Do the same for prepare. Fix the doc accordingly.
    
    4. Add tCreateFile helper.
    
    5. Change MkdirTemp to Mkdir since we have a new empty directory.
    
    6. Inline some t.TempDir() calls.
    
    7. Sprinkle t.Helper().
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    9b99c39 View commit details
    Browse the repository at this point in the history
  2. ci: add unparam linter

    Also:
     - sort the list of linters;
     - remove capability/.golangci.yml as it is now identical to the
       main one.
    
    Signed-off-by: Kir Kolyshkin <[email protected]>
    kolyshkin committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    30d392f View commit details
    Browse the repository at this point in the history