Skip to content

Feature --local needs --exclude or similar mechanism to allow excluding directories from the analysis #5162

Description

@BarrySmith

Is your feature request related to a problem? Please describe.
If I use --local to analyze a local copy of my repository (which I want to do because I don't use GitHub) it digs through all the directories (such as build directories etc) that are not part of the repository and should not be analyzed. Thus producing lots of nonsense concerns.

Describe the solution you'd like
Have an option that allows for a local analysis of the repository and nothing else.

Describe alternatives you've considered
Could do a fresh clone and run in that clone but why? I have my repository checked out for ever and variety of build products accumulate in the directory over time. Scorecard should (perhaps even by default) ignore all that stuff instead of requiring me to make a fresh clone JUST to run scorecard.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions