Skip to content

Conversation

@jedevc
Copy link
Member

@jedevc jedevc commented Apr 24, 2024

Partially inspired by moby/buildkit#4828 upstream.

Unused parameters can sometimes indicate weird issues, at the very least that are a bit of a code smell (additionally, gopls in vscode loves to flag these, which is the main reason I wanted to clear them up lol).

Thankfully, none of these are significant, there are no hiding bugs, it's just a little bit of a tidy up.

unparam definitely seems to be optimized for less "noise", and doesn't pick up on every unused parameter - it seems to try and avoid finding cases where this is used in an interface/higher-order function.

@jedevc jedevc requested a review from vito April 24, 2024 11:22
dagql/objects.go Outdated
Copy link
Member Author

Choose a reason for hiding this comment

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

While I was in the area, I also fixed up some of the incorrect doc comments here 🎉

@jedevc jedevc requested a review from sipsma April 24, 2024 12:52
@jedevc jedevc force-pushed the little-lint-fixes branch from 25a1da8 to 33e0dae Compare April 25, 2024 09:54
jedevc added 3 commits May 3, 2024 10:24
And also enable a linter to catch these in the future. `unparam` seems
to be optimized more heavily to avoid false positives, and is
significantly better at not bringing up weird interface cases that
revive seems to love.

Signed-off-by: Justin Chadwell <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
@jedevc jedevc force-pushed the little-lint-fixes branch from 33e0dae to 2d56a42 Compare May 3, 2024 10:22
@jedevc jedevc merged commit 2f29d13 into dagger:main May 3, 2024
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