问题
I do not want to see errors and warnings for third party libraries in Netbeans Action Items list, so I created a filter as shown below:
The filter is turned on, but I still see many items from node_modules
folders.
What am I doing wrong? How should the filter be configured to ignore everything coming from node_modules
and vendor
folders?
回答1:
I found a solution to hide all parser errors in folder node_modules
from this link:
How do I Ignore the build folder in NetBeans 'Find In Projects'?
But it will make Netbeans hides node_modules
from project tree
Steps:
- Tools > Options Miscellaneous
- Goto Files tab
- Add "
node_modules
" inIgnored Files Pattern
box. For example:
^(node_modules|CVS|SCCS|vssver.?\.scc|#.*#|%.*%|_svn)$|~$|^\.(?!(taccess|git.+|hgignore)$).*$
- Save
回答2:
Just a reminder: Ignoring folders will not display them any longer either and you wont be able to see it or search on it (until you enable it again of course). The filter for the extension works but will filter every single file with this extension, which problably isn't what you want either. If you just want to remove badges in a directory (recursive) without disabling it you just CAN'T. This issue was reported to netbeans and they provide the same incomplete solutions. https://netbeans.org/bugzilla/show_bug.cgi?id=226954
来源:https://stackoverflow.com/questions/31721090/how-to-set-netbeans-action-item-filters-to-ignore-third-party-folders