-
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
clippy::cargo_common_metadata ignores license-file metadata #4517
Comments
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 7, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 7, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 7, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 7, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 8, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 11, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 18, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
imp
added a commit
to imp/rust-clippy
that referenced
this issue
Sep 21, 2019
When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes rust-lang#4517
bors
added a commit
that referenced
this issue
Sep 22, 2019
clippy::cargo_common_metadata: check for license-file When license property is missing in Cargo.toml check for license-file as it may be used instead of the former. The check implemented here is very naive as it only verifies that the field is present and is not empty. More scrutiny can be applied by verifying the file is actually present. Fixes #4517 changelog: clippy::cargo_common_metadata now checks for license-file when license is missing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lint
cargo::cargo_common_metadata
checks forlicense
property among the other things. However, it ignores the presense of thelicense-file
property, which canbe used instead of thelicense
(when the license is proprietary).I would like to suggest checking for
license-file
as a fallback for missinglicense
before emitting the warning.The text was updated successfully, but these errors were encountered: