Skip to content
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

Closed
imp opened this issue Sep 7, 2019 · 0 comments · Fixed by #4518
Closed

clippy::cargo_common_metadata ignores license-file metadata #4517

imp opened this issue Sep 7, 2019 · 0 comments · Fixed by #4518

Comments

@imp
Copy link
Contributor

imp commented Sep 7, 2019

Lint cargo::cargo_common_metadata checks for license property among the other things. However, it ignores the presense of the license-file property, which canbe used instead of the license (when the license is proprietary).

I would like to suggest checking for license-file as a fallback for missing license before emitting the warning.

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 imp changed the title clippy::common-cargo-metadata ignores license-file metadata clippy::cargo_common_metadata ignores license-file metadata Sep 7, 2019
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
@bors bors closed this as completed in 4c881d1 Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant