You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, running cargo clippy on nalgebra yields 581 warnings.
A few of these are false positives, and some others are just complaints about the complicated types of nalgebra (for which not much can be done). However, many of these should be strictly good improvements to the code. Many of these fixes would also be breaking changes, so we should be aware of that.
I believe that all of these warnings should either be fixed or turned off. That way, if any future sub-par code props up, we'll quickly be able to detect it and fix it.
The text was updated successfully, but these errors were encountered:
Yeah, nalgebra started being developed before clippy existed, and I never actually used it since then unfortunately. There have been some efforts to fix clippy warning on other merged PRs but obviously we haven't fixed everything yet.
I think this is a really worthwhile endeavor. Once we have gotten to the "0 baseline" (either by fixing problems or judiciously ignoring individual special cases where we are doing the right thing), we can also consider adding stricter lints on top.
For example, we recently had a case where an automatic derive of Deserialize caused an unsoundness hole due to invariants used in unsafe code not being upheld. It turns out that there's a clippy lint (not turned on by default) that would have caught this issue, see rustsec/advisory-db#880 for more information.
Currently, running
cargo clippy
onnalgebra
yields 581 warnings.A few of these are false positives, and some others are just complaints about the complicated types of
nalgebra
(for which not much can be done). However, many of these should be strictly good improvements to the code. Many of these fixes would also be breaking changes, so we should be aware of that.I believe that all of these warnings should either be fixed or turned off. That way, if any future sub-par code props up, we'll quickly be able to detect it and fix it.
The text was updated successfully, but these errors were encountered: