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

adding clippy for windows #1027

Merged
merged 1 commit into from
Apr 17, 2019
Merged

adding clippy for windows #1027

merged 1 commit into from
Apr 17, 2019

Conversation

mwrock
Copy link
Contributor

@mwrock mwrock commented Apr 16, 2019

Resolves habitat-sh/habitat#6213

Signed-off-by: mwrock [email protected]

Copy link
Contributor

@baumanj baumanj left a comment

Choose a reason for hiding this comment

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

Assuming habitat-sh/habitat#6430 works out, I think we should make these small tweaks here. Aside from that, it looks great!

.expeditor/verify.pipeline.yml Outdated Show resolved Hide resolved
.expeditor/verify.pipeline.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@baumanj baumanj left a comment

Choose a reason for hiding this comment

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

Nothing strictly required, but I think we can make things a bit more readable with some tweaks

components/builder-api/src/server/resources/origins.rs Outdated Show resolved Hide resolved
components/builder-api/src/server/resources/pkgs.rs Outdated Show resolved Hide resolved
clippy::module_inception
clippy::new_ret_no_self
clippy::new_without_default
clippy::redundant_closure
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm still not comfortable with moving this to allowed. I know rust-lang/rust-clippy#3071 exists, but I've yet to see it flag something in our code that can't be fixed, even if the automatic suggestion isn't a correct fix. And for anything we decide we really prefer with an explicit closure, we can #[allow(…)] it.

I'm ok with moving redundant_closure to lints_to_fix, but I still find this lint valuable, and I imagine issue 3071 will be fixed at some point.

Copy link
Contributor

Choose a reason for hiding this comment

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

Moving to lints_to_fix would be ok as well. Given that the clippy default is warn not deny, and there are known issues, it's also reasonable to just allow it and move on.

Copy link
Contributor

@baumanj baumanj left a comment

Choose a reason for hiding this comment

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

@mwrock mwrock merged commit f0b6291 into master Apr 17, 2019
@mwrock mwrock deleted the clippy branch April 17, 2019 18:11
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.

Clippy tracking issue
4 participants