Skip to content

feat: add the committed-artifacts check: no build outputs are committed - #119

Merged
lefticus merged 1 commit into
mainfrom
committed-artifacts
Nov 6, 2026
Merged

lefticus merged 1 commit into
mainfrom
committed-artifacts

Conversation

@lefticus

@lefticus lefticus commented Nov 6, 2026

Copy link
Copy Markdown
Member

Closes #56. Phase 3 of #107.

BuildOutputs gains artifacts, the globs for the outputs each ecosystem must never commit, so every profile gets both vcs-ignore and committed-artifacts from one rule.

  • A glob without a slash names a file anywhere. One ending in / names a directory anywhere, and one that also starts with / names a directory at the top of the project.
  • A file inside an output directory is reported as the outermost such directory, e.g. build/.
  • In a git checkout only tracked files are judged, and --exclude applies.
  • Each bare fixture now commits one output (main.o, dist/, target/, coverage.out), so it fails the new practice.

This repository passes.

🤖 Generated with Claude Code

BuildOutputs gains `artifacts`, globs for the outputs each ecosystem must
never commit, so every profile gets both vcs-ignore and committed-artifacts
from one rule. A file inside an output directory is reported as the
outermost such directory. In a git checkout only tracked files are judged.

Each bare fixture now commits an output, so it fails the new practice.

Closes #56

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.37%. Comparing base (0f20058) to head (8dceed0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #119      +/-   ##
==========================================
+ Coverage   98.35%   98.37%   +0.01%     
==========================================
  Files          53       54       +1     
  Lines        2069     2092      +23     
  Branches      205      208       +3     
==========================================
+ Hits         2035     2058      +23     
  Misses         28       28              
  Partials        6        6              

☔ 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.

@lefticus
lefticus added this pull request to stack #123 November 6, 2026 06:00
@lefticus
lefticus merged commit f399de4 into main Nov 6, 2026
18 checks passed
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.

Add committed-artifacts check: no build outputs are committed

1 participant