You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clippy_lints/src/utils/internal_lints/metadata_collector.rs
+9
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,15 @@
7
7
//! The module transforms all lint names to ascii lowercase to ensure that we don't have mismatches
8
8
//! during any comparison or mapping. (Please take care of this, it's not fun to spend time on such
9
9
//! a simple mistake)
10
+
//!
11
+
//! ---
12
+
//!
13
+
//! So while implementing the version attribute we needed to get all versions that a lint was
14
+
//! introduced... and I wrote a script for nushell, my first script.. It's not pretty but special
15
+
//! ```nu
16
+
//! ls | where name =~ "rust-" | select name | format {name}/lints.json | each { open $it | select id | insert version $it | str substring "5,11" version} | group-by id | rotate counter-clockwise id version | update version {get version | first 1} | flatten | select id version | save "lint-version.csv"
17
+
//! ```
18
+
//! And it works, just run it on the `gh-pages` branch to get a beautiful csv file.
0 commit comments