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
It would be useful to have a clippy mode which runs clippy on the script, ideally clippy args could be supplied (especially as -A has no alternative in a config file).
This could be used to run on purposely "imperfect" code to show the messages that rust compiler/clippy provide for the sample code.
The text was updated successfully, but these errors were encountered:
That is a very helpful addition, but using it inside a $(..) makes it unix shell specific. Also as "cargo" and "rust-script" are two commands, to reduce chance of user environment causing odd behaviour it needs to be rustup run stable cargo clippy --manifest-path $(rust-script --toolchain stable -p test.rs)/Cargo.toml.
Something like rust-script --toolchain stable test.rs --clippy -- <clippy args> would be much simpler, and more suitable to put into documentation for users to run to reproduce what the docs are explaining.
It would be useful to have a clippy mode which runs clippy on the script, ideally clippy args could be supplied (especially as
-A
has no alternative in a config file).This could be used to run on purposely "imperfect" code to show the messages that rust compiler/clippy provide for the sample code.
The text was updated successfully, but these errors were encountered: