Skip to content

Add Macroscope ignore file scoped to this repo - #1682

Merged
adrian-rpf merged 1 commit into
mainfrom
adrian/macroscope-ignore-file-ad6e1b
Oct 12, 2026
Merged

adrian-rpf merged 1 commit into
mainfrom
adrian/macroscope-ignore-file-ad6e1b

Conversation

@adrian-rpf

@adrian-rpf adrian-rpf commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Written by AI, Reviewed by Adrian's eyes.

What

Adds .macroscope/ignore.md so that Macroscope reviews our tests and skips only the vendored or tool-written files this repo actually tracks.

Why

By default, Macroscope skips test files, so our Vitest and Cypress specs never get reviewed. Turning tests on (ignoreTests: false) needs a custom ignore file. A custom file replaces Macroscope's default patterns instead of adding to them, so this file lists only patterns that match files in this repo.

Patterns

Pattern Matches Why
**/yarn.lock yarn.lock Lockfile (from the defaults)
**/*.svg 60 files under src/assets/ Image markup (from the defaults)
**/.yarn/releases/** yarn-4.12.0.cjs (3 MB) Yarn binary, checked in via yarnPath
**/public/libraries/** p5.js (4.4 MB) Vendored p5.js 1.4.1
**/public/translations/*-*.json 9 locale files Written by Crowdin. en.json is still reviewed
**/public/api/scratch/** 3 files Mock Scratch API responses

Defaults left out

  • **/package.json: dependency and script changes should be reviewed.
  • **/*.lock: only matched yarn.lock, which is already covered.
  • Everything else (around 150 patterns): matches no tracked file.
  • Binaries (.whl, .glb, .sb3): Macroscope always skips these.

Trade-offs to be aware of

  • public/api/scratch/projects/cool-scratch.json is also the fixture that cypress/e2e/spec-scratch.cy.js loads, so changes to it won't be reviewed.
  • SVGs are compiled into React components by vite-plugin-svgr, so SVG markup changes won't be reviewed.
  • **/public/libraries/** will also skip any file added to that folder later, not just p5.js.

🤖 Generated with Claude Code

Macroscope's built-in ignore list skips test files, which means our
Vitest and Cypress specs are never reviewed. Opting tests back in needs
a custom .macroscope/ignore.md, and a custom file replaces the defaults
rather than extending them.

Of the ~170 default patterns, only four match files this repo tracks:
yarn.lock, *.lock, *.svg and package.json. We keep yarn.lock and *.svg,
drop *.lock (it only matched yarn.lock), and drop package.json because
dependency and script changes are worth reviewing.

On top of that we skip files that are vendored or written by tools:
the Yarn release checked in via yarnPath, the vendored p5.js bundle,
Crowdin-written locale files (en.json stays reviewed), and the mock
Scratch API responses under public/api/scratch.

Alternatives considered: copying the full default list was rejected
because almost none of it matches anything here and it would hide
package.json. Binary files (.whl, .glb, .sb3) are left out because
Macroscope always excludes binaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adrian-rpf
adrian-rpf merged commit 8003eb8 into main Oct 12, 2026
12 checks passed
@adrian-rpf
adrian-rpf deleted the adrian/macroscope-ignore-file-ad6e1b branch October 12, 2026 09:42

This branch was successfully deployed

1 active deployment
previews/1682/merge — e32f7ec4 Deployed Oct 9, 2026 by adrian-rpf via deploy-branch / build-deploy #6869
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