Skip to content

Name Dotfiles and Dotted Names Out of the File-Naming Check's Scope - #3271

Merged
ptr727 merged 3 commits into
developfrom
feature/filenaming-dot-scope
Oct 20, 2026
Merged

ptr727 merged 3 commits into
developfrom
feature/filenaming-dot-scope

Conversation

@ptr727

@ptr727 ptr727 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

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's file-naming bullet, the filenaming.scripts assert, and file_naming_findings' docstring now say which names the check does not judge.

  • The text after a name's last dot is its extension, matched whatever its case.
  • A name whose extension is none of the listed ones is not judged, whatever its mode. An executable dotfile with no listed extension, such as .Hidden_Hook, and a dotted name such as Run_Me.v2 go unjudged.
  • Two selftest cases pin both sides of the boundary. These names are not judged and not read, while a dotfile with a listed extension (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-skill passes, with 6 findings and then 0. All six were fixed.

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 20, 2026 09:35
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]>
Copilot AI lite review requested due to automatic review settings October 20, 2026 16:42
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 47ad12f0-c5de-44a0-8692-0429c44fa0f1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ptr727

ptr727 commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 9c3106e4e29d72fec2a849271e65959532081b63, the content this pull request carries at that commit against develop, and it recorded 0 findings.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.md and spec/project-types.json.
  • Updates the file_naming_findings documentation.
  • 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

Comment thread AUDIT.md Resolved
Comment thread spec/project-types.json Resolved
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]>
@ptr727

ptr727 commented Oct 20, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head f0eff140c8b57628d4e1076062d791609ce2fd6c, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.47%. Comparing base (918e42c) to head (f0eff14).

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     
Flag Coverage Δ
python-3.13 65.47% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptr727
ptr727 merged commit 8382358 into develop Oct 20, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/filenaming-dot-scope branch October 20, 2026 16:59
ptr727 added a commit that referenced this pull request Oct 20, 2026
… 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants