Skip to content

Commit ccc9f7f

Browse files
committed
fix: exclude target directory from markdown linting
The markdown linter was incorrectly processing generated documentation files in the ./target directory, causing linting failures on auto- generated content that should not be subject to style checks. Changes: - Add ./target/* exclusion to markdown file discovery - Update comment to reflect both terraform and target exclusions - Maintains existing .terraform exclusion functionality This ensures linting only processes source markdown files and ignores build artifacts and generated documentation.
1 parent 82c1df8 commit ccc9f7f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/linting/src/linters/markdown.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub fn run_markdown_linter() -> Result<()> {
1919
// Run the linter
2020
info!(target: "markdown", "Scanning markdown files...");
2121

22-
// Find all markdown files, excluding terraform directories (like the bash version)
22+
// Find all markdown files, excluding terraform and target directories
2323
let find_output = Command::new("find")
2424
.args([
2525
".",
@@ -30,6 +30,9 @@ pub fn run_markdown_linter() -> Result<()> {
3030
"-not",
3131
"-path",
3232
"*/.terraform/*",
33+
"-not",
34+
"-path",
35+
"./target/*",
3336
])
3437
.output()?;
3538

0 commit comments

Comments
 (0)