ruff/crates/ruff_dev/src
Auguste Lalande 91e81413db
Bug fix: Prevent fully defined links [``name``](link) from being reformatted (#10442)
## Summary

Currently fully define markdown links which include ticks are being
reformatted by

8619986123/crates/ruff_dev/src/generate_docs.rs (L105-L114)

```[`name`](link)``` -> ```[`name`][name](link)```

For example: https://docs.astral.sh/ruff/rules/typed-argument-default-in-stub/

This PR excludes the open parentheses from the regex, so that these types of links won't be reformatted.

## Test Plan

Extended the regression test.
2024-03-17 22:01:30 -04:00
..
format_dev.rs Make `--config` and `--isolated` global flags (#10150) 2024-03-04 11:19:40 +00:00
generate_all.rs Document ruff_dev and format_dev (#5648) 2023-07-12 16:18:22 +02:00
generate_cli_help.rs help: enable auto-wrapping of help output (#9633) 2024-01-24 10:51:07 -05:00
generate_docs.rs Bug fix: Prevent fully defined links [``name``](link) from being reformatted (#10442) 2024-03-17 22:01:30 -04:00
generate_json_schema.rs Move `Configuration` to `ruff_workspace` crate (#6920) 2023-08-28 06:21:35 +00:00
generate_options.rs Promote `lint.` settings over top-level settings (#9476) 2024-02-01 13:35:02 -06:00
generate_rules_table.rs Fix pylint upstream categories not showing in docs (#10441) 2024-03-18 01:27:39 +00:00
main.rs Make `--config` and `--isolated` global flags (#10150) 2024-03-04 11:19:40 +00:00
print_ast.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00
print_cst.rs Disallow `unreachable_pub` (#4314) 2023-05-11 18:00:00 -04:00
print_tokens.rs Update `ruff-dev` to use `SourceKind` (#8878) 2023-11-28 14:27:35 -06:00
round_trip.rs Remove source path from parser errors (#9322) 2023-12-30 20:33:05 +00:00