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

staticcheck lint fixes #2176

Merged
merged 4 commits into from
Jun 22, 2022
Merged

Conversation

tchaudhry91
Copy link
Member

@tchaudhry91 tchaudhry91 commented Jun 20, 2022

What does this change

A bunch of staticcheck fixes that I felt were straightforward. Some maybe debatable and can be "ignored" or worked around. Those can be discussed in the PR.

What issue does it fix

#2081 - Incremental Progress

Notes for the reviewer

Some fairly straightforward things unchecked errors etc have been fixed. A couple of potential bugs as well (checking err instead of !ok).

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our Contributors list. Thank you for making Porter better! 🙇‍♀️

Reviewer Checklist

  • Comment with /azp run test-porter-release if a magefile or build script was modified
  • Comment with /azp run porter-integration if it's a non-trivial PR

Signed-off-by: Tanmay Chaudhry <[email protected]>
Copy link
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

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

Looks good! I just have a couple small changes that need to be made and this is ready to merge.

pkg/cache/cache_test.go Outdated Show resolved Hide resolved
pkg/pkgmgmt/client/filesystem.go Outdated Show resolved Hide resolved
pkg/pkgmgmt/feed/generate.go Outdated Show resolved Hide resolved
pkg/porter/upgrade.go Outdated Show resolved Hide resolved
Co-authored-by: Carolyn Van Slyck <[email protected]>
Signed-off-by: Tanmay Chaudhry <[email protected]>
@tchaudhry91
Copy link
Member Author

@carolynvs completed changes as requested!

@tchaudhry91 tchaudhry91 reopened this Jun 22, 2022
@tchaudhry91 tchaudhry91 requested a review from carolynvs June 22, 2022 04:56
Copy link
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning up all the lint errors! This is really helpful and we can finally enforce no lint errors going forward in our builds. 💪

@carolynvs carolynvs merged commit d4ab1d6 into getporter:release/v1 Jun 22, 2022
@tchaudhry91
Copy link
Member Author

Hehe. Thanks @carolynvs but there are a few staticcheck fixes still left before we enforce lint in the CI. The remaining changes may require your input though or atleast I felt like there was something not totally straightforward with those.

@carolynvs
Copy link
Member

@tchaudhry91 oops, I must have missed that. Are we tracking that problem in another issue or pull request?

@tchaudhry91
Copy link
Member Author

@carolynvs we can track it in #2081 only. I'll update it with the remaining fixes.

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