-
Notifications
You must be signed in to change notification settings - Fork 156
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
chore(lint): use dylint as lint driver for tfhe-lint #1933
Conversation
0d61a52
to
4da677f
Compare
4da677f
to
72782fa
Compare
Makefile
Outdated
--features=boolean,shortint,integer,zk-pok -- -D warnings | ||
tfhe_lints: install_cargo_dylint | ||
RUSTFLAGS="$(RUSTFLAGS)" cargo dylint --all -p tfhe --no-deps -- \ | ||
--features=boolean,shortint,integer,zk-pok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really related to this PR, but strings
feature should also be enabled here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can still be added here that's a good remark
In general, everywhere we have the integer feature we may want to also have the strings feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could have a ALL_TARGETS
variable in the Makefile so that we only have to update it when adding new features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
targets has a different meaning for cargo, there is already --all-targets
so it's a bit confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good a few small details
9b669c1
to
47e3257
Compare
47e3257
to
48d9d23
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one small question left, otherwise I'll approve
@@ -416,10 +415,15 @@ clippy_versionable: install_rs_check_toolchain | |||
RUSTFLAGS="$(RUSTFLAGS)" cargo "$(CARGO_RS_CHECK_TOOLCHAIN)" clippy --all-targets \ | |||
-p tfhe-versionable -- --no-deps -D warnings | |||
|
|||
.PHONY: clippy_tfhe_lints # Run clippy lints on tfhe-lints | |||
clippy_tfhe_lints: install_cargo_dylint # the toolchain is selected with toolchain.toml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toolchain auto installs itself ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, you can see it here: https://github.com/zama-ai/tfhe-rs/actions/runs/12713445967/job/35441362205?pr=1933#step:5:3134
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then perfect
closes: https://github.com/zama-ai/tfhe-rs-internal/issues/854