Skip to content

Ability to define files to report #68

@jalooc

Description

@jalooc

What I would love to see in this great lib is the ability to define what files to report.

I don't mean what we already have under the ignore option, let me explain on an example:
In my CI, on some feature-branch, I would like to inspect only the files that were altered in that branch. I could run jsinspect with ignore option, passing the list of files returned from git diff, but then jsinspect wouldn't find files that have code similar to files that were unchanged.

So one solution that came to my mind would be to add an option like reportOnly. In that case I wouldn't use the ignore option (so that all the repo would be analysed), but I would get errors only for repetitions that occurred in the files passed to reportOnly (== at least one of the files containing a repetition would be on that list).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions