Skip to content

No files found to format with the specified plugins at SOME_PATH #1

@ekorchmar

Description

@ekorchmar

Issue

Any time a commit in a repository with this hook is made, if files changed are not something dprint knows about, following error message is displayed:
image

Likely cause

At some point, dprint changed default behavior to cause this error when no files are supplied to dprint fmt call. This makes it impossible to commit without manually calling --no-verify, which kind of defeats the purpose of having a pre-commit hook at all.

Likely fix

Use dprint fmt --allow-no-files to restore original behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions