Normalize relative markdown links (#3190)

This commit is contained in:
Jonathan Plasse 2023-02-23 22:24:31 +01:00 committed by GitHub
parent a688a237d7
commit 6e54cd8233
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 14 deletions

View file

@ -5,7 +5,7 @@ use ruff::registry::{Linter, Rule, RuleNamespace, UpstreamCategory};
use strum::IntoEnumIterator;
const FIX_SYMBOL: &str = "🛠";
const URL_PREFIX: &str = "https://beta.ruff.rs/docs/rules";
const URL_PREFIX: &str = "/docs/rules";
fn generate_table(table_out: &mut String, rules: impl IntoIterator<Item = Rule>, linter: &Linter) {
table_out.push_str("| Code | Name | Message | Fix |");