Skip to content

Local command to check for whitespace issues #1184

@barbeque-squared

Description

@barbeque-squared

In #1182 it came up that there was no local command documented to check for whitespace, which might be useful for those on editors that don't support .editorconfig, or to quickly rerun if the CI fails on it and you want to make sure you've fixed them all.

The commands used in the CI are in https://github.com/UltraStar-Deluxe/USDX/blob/master/.github/workflows/check-whitespace.yml

Ideally it can be a one-liner that doesn't require touching the local config. If that means losing the end-of-file newline detection, I'd say that's still better than nothing. It's probably just some variation of the second command that uses origin/master or something, I just don't have time to experiment with it now.

Second part of the discussion would be "where to document this".

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