Repository navigation
Document That an Allowed ESPHome Warning Exits the Lint at 0 - #284
Conversation
The compile step pasted the matrix config path, a file name from the pull request, into its bash -c script text. It now reaches the container as the CONFIG environment variable and is expanded quoted. OPERATIONS.md "Compile Lint" now says exit status 1 also covers an ESPHome warning the allow list does not let through. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nces The env indirection for the matrix config path guarded nothing, since a pull_request run executes the author's own workflow file with a read-only token. The OPERATIONS.md "Compile Lint" exit status bullet is split under the sentence-length limit. The lint's docstring now says an ESPHome warning exits 1 only when the allow list does not let it through. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #284 +/- ##
========================================
Coverage 85.89% 85.89%
========================================
Files 3 3
Lines 695 695
========================================
Hits 597 597
Misses 98 98
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the change only updates the exit-status description in the docs and the module docstring to cover ESPHome warnings the allow list does not permit.
No open issues 🎉
What changed in this PR
This PR fixes a documentation gap in the compile-lint exit status. An ESPHome warning that the allow list does not permit now makes the lint exit 1. The docs previously said 1 covered only findings in this repository's code. The change answers a documentation finding raised on the #283 promotion.
Changes:
OPERATIONS.md"Compile Lint": the Exit status bullet now says exit1also covers an ESPHome warning the allow list does not let through.tools/compile-lint/src/compile_lint/lint.py: the module docstring states the same exit-status rule, replacing the old "any ESPHome warning exits1" wording.
| File | Description |
|---|---|
| tools/compile-lint/src/compile_lint/lint.py | Module docstring now says exit 1 covers owned-code findings and ESPHome warnings not on the allow list. |
| OPERATIONS.md | Exit status bullet now says exit 1 also covers ESPHome warnings the allow list does not let through. |
Review effort: Lite
Answers the documentation finding Copilot raised on the #283 promotion.
OPERATIONS.md"Compile Lint": the Exit status bullet now says1also covers an ESPHome warning the allow list does not let through. Before, it named only findings in this repository's code.tools/compile-lint/src/compile_lint/lint.py: the module docstring says the same. It used to say any ESPHome warning exits1, which an allowed one does not.Verified: 60 compile-lint tests pass, ruff is clean, and the prose gate passes on the changed lines. The local strict review's second pass found nothing.
The other two #283 findings were declined in their threads with evidence and need no change here.
🤖 Generated with Claude Code
Summary by CodeRabbit