Skip to content

check-machine-paths: ignore lines a formatter only reindented #1185

Open

Description

@kyle-sexton

Problem

The check-machine-paths action reports a machine-specific path on any line a pull request's diff shows as added. A formatter that only reindents a file makes every line look added, so a pre-existing sample path in a test fixture fails the check. In melodic-software/claude-code-plugins, a shfmt-only cleanup fails it on plugins/source-control/scripts/worktree-create.test.sh:1142 (C:/repos/acme, a test's sample path) for that reason (claude-code-plugins#17178). That repository pins the action at v0.75.0 (.github/workflows/pr-require-checks.yml:1887-1890).

Done when

  • The action judges only content a change really adds: a line whose non-whitespace content is unchanged from the base version of the file (only reindented or reflowed) is not reported.
  • A test shows a whitespace-only reindent of a file holding a machine path passes, and a genuinely added machine path still fails.
  • A release tag of this repository carries the change, so claude-code-plugins can bump its pin.

Refs: melodic-software/claude-code-plugins#17178

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions