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

-x exclude files or folders is not working #204

Open
baizn opened this issue Oct 19, 2016 · 3 comments
Open

-x exclude files or folders is not working #204

baizn opened this issue Oct 19, 2016 · 3 comments

Comments

@baizn
Copy link

baizn commented Oct 19, 2016

plato -d output -r ./*?/*  -e .eslintrc.json -t "NodeBB测试报告" -x 'node_modules'

Execute the above command, Still included node_modules, and then happend failed:
image

@tech4him1
Copy link

I can confirm this (win10 x64, node v6.7.0).

@anthonyvialleton
Copy link

anthonyvialleton commented Nov 15, 2016

This : plato -r -d report src -e .eslintrc -x 'node_modules' works for me and excludes correctly node_modules folder.

(win10 x64, node v6.9.0, npm v3.10.8)

@replete
Copy link

replete commented Jan 10, 2017

Exclude seems to expect a regex and fails to exclude correctly:

plato --recurse --dir ../plato-report --jshint .jshintrc --exclude /*.spec.js$/ ./src
plato --recurse --dir ../plato-report --jshint .jshintrc --exclude /.spec.js/ ./src
plato --recurse --dir ../plato-report --jshint .jshintrc --exclude /spec.js$/ ./src

None of these exclude files ending with .spec.js despite being the correct syntax.

EDIT: plato --recurse --dir ../mall-app-plato-report --jshint .jshintrc --exclude '\.spec\.js' ./src DID work.

This highlights that the syntax is VERY fussy.

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

4 participants