-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add suspicious_command_arg_space
lint
#10317
Conversation
r? @Manishearth (rustbot has picked a reviewer for you, use r? to override) |
Co-authored-by: Manish Goregaokar <[email protected]>
0a927b1
to
8f56767
Compare
I did a search to look at existing usages There are results with There are some short flag usages like https://github.com/PoC-Consortium/scavenger/blob/b38f6552c31d589a0433cb8ef52a44c87ce18725/src/utils.rs#L33 but all the ones I saw are worth linting, e.g. there the format gets a leading space which is unexpected |
Yeah |
Thanks! Added test cases. |
Oh, right, you also need to construct the lint pass and register it in lib.rs |
Oh oops. Done. |
@bors r+ thanks, this is great! |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #10316
changelog: New lint: [
suspicious_command_arg_space
]#10317