Skip to content

Commit d116b1a

Browse files
authored
Merge pull request #10 from continuedev/ignore-readme-render
Add README.md skip filter to rule processing
2 parents 56a5744 + 5ab4b4f commit d116b1a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/formats/transform.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,11 @@ func ProcessRuleFiles(sourceDir string, targetFormat Format) error {
276276
return nil
277277
}
278278

279+
// Skip README.md files
280+
if strings.ToLower(filepath.Base(path)) == "readme.md" {
281+
return nil
282+
}
283+
279284
// Check if the rule should be included in the target format
280285
content, err := os.ReadFile(path)
281286
if err != nil {

0 commit comments

Comments
 (0)