Repository navigation
Conversation
Add gitignore template for Zephyr RTOS projects covering: - Build artifacts and twister output - Generated config/devicetree files - West workspace metadata - Python virtual environments
Add a comprehensive template validation tool that checks for: - Valid glob pattern syntax - Duplicate pattern detection - Conflicting include/exclude rules - Coverage analysis with suggestions - CLI interface with argparse - Detailed reporting (errors, warnings, suggestions) - Support for processing all templates in the repo Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Trailing whitespace in .gitignore patterns can cause unexpected behavior. This script detects and removes trailing whitespace from template files with dry-run support. Signed-off-by: Srikanth Patchava <spatchava@meta.com>
Comprehensive test suite covering glob validation, trailing whitespace detection, duplicate and conflict detection, coverage analysis, and report formatting. Signed-off-by: Srikanth Patchava <spatchava@meta.com>
5c3fe73 to
4cfd0b8
Compare
|
This PR is stale because there have been no updates in 90 days. It will close after 365 days of inactivity. Leave a comment if you want to keep it open. |
| @@ -0,0 +1,78 @@ | |||
| #!/usr/bin/env python3 | |||
There was a problem hiding this comment.
I'd ask that all of the changes in /scripts be removed. It's appreciated, but we actually have a linter already written that I keep forgetting to merge 😁
| # IDE | ||
| .vscode/launch.json | ||
| .vscode/tasks.json | ||
| *.jlink |
There was a problem hiding this comment.
We ask that IDE-specific ignores go in their own Global/ templates rather than language-specific templates. In this case the vscode template lives in https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
| # IDE | |
| .vscode/launch.json | |
| .vscode/tasks.json | |
| *.jlink |
| @@ -0,0 +1,27 @@ | |||
| # Zephyr RTOS build artifacts | |||
There was a problem hiding this comment.
We should move this into community/embedded (which already exists) rather than create a new community/Embedded directory 👍
I think your version fits the directory structure better, but we already have the lowercase embedded directory so we should continue using it for now.
Automated contribution by @srpatcha.
Changes
feat: add Zephyr RTOS .gitignore template
Signed-off with GPG.