Commit 4bae734
authored
Update Ruff mdtest structure (#25246)
Summary
--
While working on #25233, I realized that my suggestion to group multiple
rules within the same
Markdown file using top-level headings ran afoul of a markdownlint
[rule] against having multiple
top-level headings in the same file. I was a bit worried about the size
of the resulting files if we
followed this suggestion anyway, so I think the best course of action is
to recommend directories
for each linter with a separate file per rule.
This PR updates our existing mdtests to this new structure and also
updates the recommendation in the
contributing docs.
Test Plan
--
Existing mdtests in new locations
[rule]:
https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md025---multiple-top-level-headings-in-the-same-document1 parent c189569 commit 4bae734
3 files changed
Lines changed: 4 additions & 4 deletions
File tree
- crates/ruff_linter/resources/mdtest
- flake8-bandit
- test-rules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments