Excluding Files with .readmeaiignore¶
This guide shows you how to exclude specific files and directories from ReadmeAI analysis using a .readmeaiignore
file.
Quick Start¶
-
Create the ignore file in your repository root:
-
Add patterns for files to exclude:
-
Run ReadmeAI as normal - it will automatically detect and use your ignore file.
Common Use Cases¶
Exclude Sensitive Files¶
Exclude Development Files¶
Exclude Large Data Files¶
Include Important Files¶
Use !
to include files that would otherwise be excluded:
Testing Your Patterns¶
To verify your ignore patterns work correctly:
- Run ReadmeAI on your repository
- Check the generated README for unwanted file references
- Adjust patterns as needed
The system will log when it finds your .readmeaiignore
file:
Pattern Examples by Language¶
Python Projects¶
JavaScript/Node.js¶
Documentation Projects¶
Advanced Patterns¶
Recursive Exclusion¶
Conditional Inclusion¶
Troubleshooting¶
Problem: Files still being analyzed despite ignore patterns
Solutions: - Check file path case sensitivity - Verify pattern syntax (use forward slashes) - Test with simpler patterns first - Check the ignore file is in repository root
Problem: Important files being excluded
Solutions: - Add negation patterns with !
- Review default exclusions in ignore patterns concepts - Be more specific with your exclusion patterns