Closed iceiix closed 3 years ago
Ah, good catch! It was definitely intended that -D warnings
be passed to clippy. I'm not sure about exposing this as a parameter though. default.yml
is intended to be an opinionated default, and I think it makes sense for that to include opting in to all default clippy lints. I think I'd prefer a PR that just fixed up the clippy command, and doesn't add a parameter :)
Adds a parameter to
default.yml
to allow changing the clippy configuration, allowing/denying/etc lints.Note: this changes the default behavior, unsure if it is intended. The
displayName
indefault.yml
was set to "cargo clippy -- -D warnings", but the actual command executed was "cargo clippy --all". This PR changes the script to actually run with-D warnings
(denying warnings), but it can be overridden by the user of the template.