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

Enable clippy #182

Merged
merged 1 commit into from
Jul 15, 2023
Merged

Enable clippy #182

merged 1 commit into from
Jul 15, 2023

Conversation

aaronmondal
Copy link
Member

@aaronmondal aaronmondal commented Jul 14, 2023

After this change it is a hard error to commit anything that doesn't
conform to Clippy's default warning set.


This change is Reviewable

@aaronmondal
Copy link
Member Author

This is based on a wrong branch at the moment but useful to test CI. After #181 we can rebase it onto main.

Copy link
Member Author

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

@allada @chrisstaite-menlo It works 🥳

Reviewable status: 0 of 8 files reviewed, all discussions resolved

@aaronmondal aaronmondal requested a review from allada July 14, 2023 22:59
Copy link
Member Author

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @allada)


.bazelrc line 39 at r1 (raw file):

test --output_groups=+clippy_checks

# Convenience config to build a single target with clippy enabled. Use as:

Not sure we really need this anymore, but I guess it could be useful to A/B test using clippy and no clippy in some scenarios?

Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @aaronmondal)


.bazelrc line 39 at r1 (raw file):

Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…

Not sure we really need this anymore, but I guess it could be useful to A/B test using clippy and no clippy in some scenarios?

eeeh, I would remove it. In reality the opposite is more likely, people are more likely to want to disable clippy when running tests. If you really want to do something here, I'd add noclippy.

After this change it is a hard error to commit anything that doesn't
conform to Clippy's default warning set.
Copy link
Member Author

@aaronmondal aaronmondal left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 1 files reviewed, all discussions resolved (waiting on @allada)


.bazelrc line 39 at r1 (raw file):

Previously, allada (Nathan (Blaise) Bruer) wrote…

eeeh, I would remove it. In reality the opposite is more likely, people are more likely to want to disable clippy when running tests. If you really want to do something here, I'd add noclippy.

Yeah seems kinda unnecessary. I'll just remove it. We can always add more configs later if we really feel like we need them 😇

Copy link
Member

@allada allada left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @aaronmondal)

@aaronmondal aaronmondal merged commit f211ef2 into TraceMachina:master Jul 15, 2023
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