This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 142940 [details] A screenshot of the error When using PEAR PHP CodeSniffer with netbeans on inspection a 'Code sniffer analysis error' message is returned when no violations are found. It should return no errors since there are no violations. When checking the same code with CodeSniffer on command line no violation notices are returned. This confused me for a while and I was looking for problems in my code, but of course there were no issues with the code.
Please, review the actual command output in the Output window [1]. If there is no error, feel free to reopen this issue, thanks. [1] Window > Output
Here is what I get in the Output window: "Code Sniffer (analyze #1)" tab: "/usr/bin/php" "/usr/bin/phpcs" "--standard=PEAR" "--report=xml" "--extensions=inc,php,phpt,php4,php5,php3,phtml" "--encoding=UTF-8" "/home/vader/NetBeansProjects/PhpProject1" Done. "Mess Detector (analyze #1)" tab: "/usr/bin/php" "/usr/bin/phpmd" "/home/vader/NetBeansProjects/PhpProject1" "xml" "codesize,controversial,design,naming,unusedcode" "--suffixes" "inc,php,phpt,php4,php5,php3,phtml" <?xml version="1.0" encoding="UTF-8" ?> <pmd version="1.5.0" timestamp="2013-12-10T00:39:33+02:00"> </pmd> Done.
Fixed, thanks for catching that. http://hg.netbeans.org/web-main/rev/355c77667ac4
(In reply to Tomas Mysik from comment #3) > Fixed, thanks for catching that. > > http://hg.netbeans.org/web-main/rev/355c77667ac4 Thank you sir! :-)
You are welcome ;)
Integrated into 'main-silver', will be available in build *201312110002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/355c77667ac4 User: Tomas Mysik <tmysik@netbeans.org> Log: #239232 - Source inspect returns erroneous message 'Code sniffer analysis error'
How do you figure this is "FIXED"? I'm running NetBeans 8.1 (Build 201510222201) and I get this error with not a thing in the output window except ""C:\xampp\php\php.exe" "C:\Users\{usernaem}\AppData\Roaming\Composer\vendor\squizlabs\php_codesniffer\bin\phpcs" "--standard=Squiz" "--report=xml" "--extensions=php4,php5,php3,phtml,phpt,inc,php" "--encoding=UTF-8" "C:\www\yii_advanced" Done. How is that "Fixed"??? FYI, I really like Netbeans but if I'm getting weird crap like this I really need to consider another IDE ("paid" or not).
I left this as Priority "P3" because it 'Prevents users from using the software efficiently' .. at least it does for me. Another IDE product I'm using finds issues and displays them -- although most of them are minor. But I'd rather use this one if this gets resolved. FYI, I'm just a programmer trying to run a business. I don't really have time to deal with what I classify as "non-business" issues. Thanks, though, for all you guys have done. This is an incredible product. I hope there's a resolution for this, and yes, I did read the threads.