mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00
refactor: Move Linter::url and Linter::name generation to proc macro
This lets us get rid of the build.rs script and results in more developer-friendly compile error messages.
This commit is contained in:
parent
f472fbc6d4
commit
991d3c1ef6
4 changed files with 78 additions and 90 deletions
|
@ -84,7 +84,8 @@ mod tests {
|
|||
fp.write(f"{indent}// {plugin}")
|
||||
fp.write("\n")
|
||||
|
||||
elif line.strip() == '#[prefix = "RUF"]':
|
||||
elif line.strip() == '/// Ruff-specific rules':
|
||||
fp.write(f"/// [{plugin}]({url})\n")
|
||||
fp.write(f'{indent}#[prefix = "{prefix_code}"]\n')
|
||||
fp.write(f"{indent}{pascal_case(plugin)},")
|
||||
fp.write("\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue