You've already forked lint-policy
Ensure lint names are underscored for the future
This commit is contained in:
@@ -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"]
|
||||
|
||||
@@ -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('-', "_")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user