Ensure lint names are underscored for the future

This commit is contained in:
2026-09-28 19:44:40 -06:00
parent 9ce6ba594d
commit 7caafff750
20 changed files with 14872 additions and 14869 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "lint-policy-cli"
version = "0.0.2"
version = "0.0.3"
description = "Track rust lints"
repository = "https://git.skrundz.dev/codegen/lint-policy"
keywords = ["cargo", "lint"]
+1 -2
View File
@@ -15,7 +15,6 @@ mod diff;
mod group;
mod source;
use cli::Args;
use diff::{Diff, diff};
use crate::group::GroupTable;
@@ -27,7 +26,7 @@ static EMPTY_GROUPS: GroupTable = GroupTable::new();
#[cfg_attr(test, expect(clippy::missing_errors_doc, reason = "main function"))]
fn main() -> Result<()> {
let args = Args::parse();
let args = cli::Args::parse();
let new_lints = args.read_new_source();
let old_lints = args.read_old_source();
@@ -226,5 +226,5 @@ fn strip_lint_name(linter: Linter, name: &str) -> String {
name.strip_prefix(linter.as_ref())
.and_then(|name| name.strip_prefix("::"))
.unwrap_or(name)
.to_owned()
.replace('-', "_")
}
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "lint-policy"
version = "0.0.2"
version = "0.0.3"
description = "Model used by cargo-lint-policy"
repository = "https://git.skrundz.dev/codegen/lint-policy"
keywords = ["lint"]