File tree Expand file tree Collapse file tree 6 files changed +38
-0
lines changed
tests/ui-cargo/cargo_common_metadata Expand file tree Collapse file tree 6 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ declare_clippy_lint! {
23
23
/// [package]
24
24
/// name = "clippy"
25
25
/// version = "0.0.212"
26
+ /// authors = ["Someone <someone@rust-lang.org>"]
26
27
/// description = "A bunch of helpful lints to avoid common pitfalls in Rust"
27
28
/// repository = "https://github.com/rust-lang/rust-clippy"
28
29
/// readme = "README.md"
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " cargo_common_metadata"
3
+ version = " 0.1.0"
Original file line number Diff line number Diff line change
1
+ #![ warn( clippy:: cargo_common_metadata) ]
2
+
3
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: package `cargo_common_metadata` is missing `package.authors` metadata
2
+ |
3
+ = note: `-D clippy::cargo-common-metadata` implied by `-D warnings`
4
+
5
+ error: package `cargo_common_metadata` is missing `package.description` metadata
6
+
7
+ error: package `cargo_common_metadata` is missing `either package.license or package.license_file` metadata
8
+
9
+ error: package `cargo_common_metadata` is missing `package.repository` metadata
10
+
11
+ error: package `cargo_common_metadata` is missing `package.readme` metadata
12
+
13
+ error: package `cargo_common_metadata` is missing `package.keywords` metadata
14
+
15
+ error: package `cargo_common_metadata` is missing `package.categories` metadata
16
+
17
+ error: aborting due to 7 previous errors
18
+
Original file line number Diff line number Diff line change
1
+ [package ]
2
+ name = " cargo_common_metadata"
3
+ version = " 0.1.0"
4
+ authors = [" Random person from the Internet <someone@someplace.org>" ]
5
+ description = " A test package for the cargo_common_metadata lint"
6
+ repository = " https://github.com/someone/cargo_common_metadata"
7
+ readme = " README.md"
8
+ license = " MIT OR Apache-2.0"
9
+ keywords = [" metadata" , " lint" , " clippy" ]
10
+ categories = [" development-tools::testing" ]
Original file line number Diff line number Diff line change
1
+ #![ warn( clippy:: cargo_common_metadata) ]
2
+
3
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments