Comments (10)
Or maybe phpcsmd could just change its logic and instead of "ignore this extensions/files" it could be "check this extensions/files" and have php - js and css files by default. (?)
from phpcsmd.
What about supporting both? Let the user decide if he/she wants to ignore or include specific regex
from phpcsmd.
supporting both seams good, but how do you plan to do that?
making up that regex that I've made may be too difficult for a user not familiar to regex language.
also, is it possible that someone wants to validate a pdf file? because wright now that's the default behavior when you check a whole dir.
from phpcsmd.
Ok, this works.
It would be better for me as a user if I just put "php,css,js" or "java,txt,png,jpg,gif" instead of editing a regex but for now this is enough.
You may close this issue or save it for later improvements ;)
from phpcsmd.
Oh, this is missing from project properties!
from phpcsmd.
That's why i didn't closed it :D
from phpcsmd.
In eclipse we could use patterns to ignore files or folders. We could just do:
"/folder/,file.js,/anotherfolder/,anotherfile.php"
And this whole folders and files are ignored.
I don't know if it is possible/easy enough to apply this logic here but maybe in the eclipse plugin we can learn something ;)
https://github.com/PHPsrc/org.phpsrc.eclipse.pti.tool.codesniffer/blob/master/src/org/phpsrc/eclipse/pti/tools/codesniffer/core/PHPCodeSniffer.java
https://github.com/PHPsrc/org.phpsrc.eclipse.pti.tool.codesniffer
from phpcsmd.
Could you test if this works for you?
from phpcsmd.
I don't think so...I've try to ignore (by using both ways) php files and they are beeing scanned even after netbeans restart.
This are the settings being save (don't know if that helps :p)
phpcsmd.phpcs.standard=/var/www/project/build/CS
phpcsmd.general.ignorepattern=\\.(svn|git)|\\.(phtml|html|xml|txt|java|svg|png|jpg|gif|php)$
phpcsmd.general.includepattern=(?\!.*\\.(svn|git))(\\.(css|js|php3|php4|php5))$
phpcsmd.general.includestrategy=false
from phpcsmd.
Tested several times. Works for me now.
from phpcsmd.
Related Issues (20)
- Toggle phpcsmd annotations HOT 3
- This is happening on NetBeans 7.3.1 Mac OSX HOT 1
- phpcpd must use one exclude for each folder HOT 2
- Add "script location" to project settings HOT 1
- phpmd "--exclude" option will not work when checking one file
- org.openide.filesystems.FileObject.toURL: LowPerformance took 72521 ms. HOT 5
- PHP CPD not working in Netbeans 7.4 and Windows 8.1 64-bit HOT 4
- Netbeans 8.0 Beta HOT 6
- Add support to import a generated PMD report HOT 22
- Better menu captions
- Settings > PHP > PHPCSMD > General > ignore regex ... isn't regular expression'ing. HOT 2
- Netbeans internal formatting feature and PHP CS HOT 1
- Setting option for running PHPCS-like tools
- Option to scan/update as you type? HOT 1
- Scan does nothing, tons of errors in log HOT 2
- Version for netbeans 8.1? HOT 7
- Process for inclusion in NetBeans PluginPortal? HOT 1
- Netbeans 11.3 HOT 6
- Feature - Follow custom rulesets from files (xml)
- How to install PHPCSMD in netbeans 8.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpcsmd.