vip-scanner icon indicating copy to clipboard operation
vip-scanner copied to clipboard

Standard way of indicating skipped directories

Open danielbachhuber opened this issue 11 years ago • 8 comments

VIP Scanner gets pretty useless when it scans /node_modules, etc.

There should be a standard way of marking files / directories to skip in the scan.

danielbachhuber avatar Jul 25 '14 13:07 danielbachhuber

I'm guessing this is why the scanner never works locally for me.

developdaly avatar Aug 08 '14 20:08 developdaly

@joshbetz What do you think?

grappler avatar Sep 05 '14 22:09 grappler

The PR #149 is only solving the problem temporarily. What about adding a filter so that it can be defined according to the environment?

grappler avatar Sep 19 '14 14:09 grappler

Can we leave this open? .sass-cache is another such directory, and I don't think you want to play whack-a-mole with excluded directories.

danielbachhuber avatar Oct 10 '14 16:10 danielbachhuber

Also, you have the directories individually declared multiple times — that's ripe for abstraction.

danielbachhuber avatar Oct 10 '14 16:10 danielbachhuber

Yes this should remain open - the PR incorrectly mentioned fixing this issue, but it only adds node_modules to the excluded list.

nickdaugherty avatar Oct 10 '14 16:10 nickdaugherty

I have have tried to create a version where a filter is used: https://github.com/grappler/vip-scanner/commit/27db1a3dc995d54784087e0eb39ab398879e3cc0

I am getting an error with my current code. Parse error: syntax error, unexpected '(', expecting ',' or ';' in /wp-content/plugins/vip-scanner/vip-scanner/class-base-check.php on line 8

I would love some feedback.

grappler avatar Oct 10 '14 22:10 grappler

I am getting an error with my current code. Parse error: syntax error, unexpected '(', expecting ',' or ';' in /wp-content/plugins/vip-scanner/vip-scanner/class-base-check.php on line 8

You can't call a function in that context. The filter would have to go in a constructor.

joshbetz avatar Oct 10 '14 22:10 joshbetz