Repository navigation
Name Dotfiles and Dotted Names Out of the File-Naming Check's Scope - #3271
Conversation
The file-naming check takes the text after a name's last dot as its extension and judges only the listed extensions and names with no dot. An executable dotfile and a dotted name such as Run_Me.v2 were skipped with nothing saying so. AUDIT.md, the filenaming.scripts assert, and the function's docstring now state that both are out of scope, and a selftest case pins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The local review found the new sentences claiming every executable dotfile goes unjudged, where a dotfile with a listed extension is judged on its stem, and reading the extension list as case-sensitive. It also found the statements excluding these names from the rule where only the check leaves them unjudged. Each statement now says the check does not judge them, matches the extension whatever its case, and limits the dotfile case to one with no listed extension. A selftest case pins the judged side. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
A recorded local strict-review pass covers head |
There was a problem hiding this comment.
🟡 Changes recommended
Clarify that the exclusions apply only to dotted names to avoid contradicting extensionless executable handling.
2 open issues
What changed in this PR
Documents the file-naming check’s existing treatment of dotfiles and dotted names without changing behavior.
Changes:
- Clarifies scope in
AUDIT.mdandspec/project-types.json. - Updates the
file_naming_findingsdocumentation. - Adds boundary self-tests.
| File | Summary |
|---|---|
spec/project-types.json |
Updates the naming contract; a moderate P2 wording ambiguity remains. |
spec/audit.py |
Clarifies documentation and adds tests; a moderate P1 wording ambiguity remains. |
AUDIT.md |
Updates audit guidance; a moderate P2 wording ambiguity remains. |
Review effort: Lite
Read literally, a name whose extension is none of those took in an extensionless executable too, which the check judges. The sentence now names a name with a dot and none of the listed extensions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
A recorded local strict-review pass covers head |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3271 +/- ##
===========================================
- Coverage 65.49% 65.47% -0.02%
===========================================
Files 17 17
Lines 10011 10011
===========================================
- Hits 6557 6555 -2
- Misses 3454 3456 +2
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:
|
… Main (#3272) ## Summary Promotes two pull requests from develop, both from this round. - #3270: `pr_review.py`'s Markdown readers record where they still differ from GitHub's renderer as known limits, with notes in the `CodeSpans` and `unrecognized_in` docstrings. Tests pin each case: a paragraph end read from its line alone, a top-level setext underline, a span after an even backslash run, a backtick in a link's destination or title, a heading's indent, and the `str.splitlines` separators GitHub does not split on. - #3271: the file-naming check's `AUDIT.md` bullet, `filenaming.scripts` assert, and docstring say that a name with a dot and none of the listed extensions is not judged. A selftest case pins each side of that boundary. Closes #3240 Closes #3265 Closes #3263 Closes #3260 Closes #3259 Closes #3268 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Summary
This carries out the maintainer's answer on #3268 (choice 1). The file-naming check's behavior is unchanged. What changes is that
AUDIT.md'sfile-namingbullet, thefilenaming.scriptsassert, andfile_naming_findings' docstring now say which names the check does not judge..Hidden_Hook, and a dotted name such asRun_Me.v2go unjudged.bin/.Hook_Run.sh,bin/.lint.py) is judged on its stem. A mutation that skips every leading-dot name fails the second case.#3268 closes through the promotion pull request.
Local review
Two recorded
agent-skillpasses, with 6 findings and then 0. All six were fixed.🤖 Generated with Claude Code