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

chore(lint): use dylint as lint driver for tfhe-lint #1933

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

nsarlin-zama
Copy link
Contributor

@cla-bot cla-bot bot added the cla-signed label Jan 8, 2025
@nsarlin-zama nsarlin-zama force-pushed the ns/chore/dylint branch 3 times, most recently from 0d61a52 to 4da677f Compare January 9, 2025 09:21
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
Copy link
Contributor

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

Copy link
Member

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

Copy link
Contributor

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

Copy link
Contributor Author

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

Makefile Outdated Show resolved Hide resolved
Copy link
Member

@IceTDrinker IceTDrinker 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 a few small details

utils/tfhe-lints/.gitignore Outdated Show resolved Hide resolved
utils/tfhe-lints/Cargo.toml Show resolved Hide resolved
@nsarlin-zama nsarlin-zama force-pushed the ns/chore/dylint branch 3 times, most recently from 9b669c1 to 47e3257 Compare January 10, 2025 15:14
Copy link
Member

@IceTDrinker IceTDrinker left a 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
Copy link
Member

Choose a reason for hiding this comment

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

toolchain auto installs itself ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

then perfect

@nsarlin-zama nsarlin-zama merged commit 9a64c34 into main Jan 14, 2025
108 of 111 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/chore/dylint branch January 14, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants