Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define files to report #68

Open
jalooc opened this issue Jan 15, 2018 · 0 comments
Open

Ability to define files to report #68

jalooc opened this issue Jan 15, 2018 · 0 comments

Comments

@jalooc
Copy link

jalooc commented Jan 15, 2018

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant