Skip to content

Inspect only git tracked files when run under git repos #1897

Open
@ssbarnea

Description

@ssbarnea

Instead of linting all the folders under current directory or asking the user to maintain a long list of excludes, it would be far better to detect when the tool is run inside a git repository and perform linting only on tracked files: git ls-files

This would almost remove the need to maintain exclude lists and provide a very good user experience when running the tool for the first time on any repository.

I already used this approach and testing if inside a git repo is also another very simple command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions