-
Notifications
You must be signed in to change notification settings - Fork 290
Followups to #716 (add musig2 API) #794
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
Changes from all commits
f5f90af
07922fd
7c56bcc
9615ec8
4dd861f
3b0232a
00c8c75
6d938d3
ec66003
c492c75
dc04575
ebdaec7
40a8b65
8a43317
d611a4f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,13 @@ alloc = [] | |
|
||
[lints.rust] | ||
unexpected_cfgs = { level = "deny", check-cfg = ['cfg(bench)', 'cfg(secp256k1_fuzz)', 'cfg(rust_secp_no_symbol_renaming)'] } | ||
|
||
[lints.clippy] | ||
# Exclude lints we don't think are valuable. | ||
large_enum_variant = "allow" # docs say "measure before paying attention to this"; why is it on by default?? | ||
similar_names = "allow" # Too many (subjectively) false positives. | ||
uninlined_format_args = "allow" # This is a subjective style choice. | ||
indexing_slicing = "allow" # Too many false positives ... would be cool though | ||
match_bool = "allow" # Adds extra indentation and LOC. | ||
match_same_arms = "allow" # Collapses things that are conceptually unrelated to each other. | ||
must_use_candidate = "allow" # Useful for audit but many false positives. | ||
Comment on lines
+41
to
+47
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't this lints be whitelisted in the modules as needed rather than globally here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is there no newline? |
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't this lints be whitelisted in the modules as needed rather than globally here.
Also if whitelisting locally (either in modules or specific code) I would advocate to using
expect
thanallow
.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.
These lints are bad and I would rather not use clippy than deal with them. Global whitelisting is the right approach.
Using
expect
would require I know whether or not they trigger.