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.

Bug 239232 - Source inspect returns erroneous message 'Code sniffer analysis error'
Summary: Source inspect returns erroneous message 'Code sniffer analysis error'
Status: REOPENED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2013-12-08 07:32 UTC by crazy_snail
Modified: 2017-09-27 01:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A screenshot of the error (107.41 KB, image/png)
2013-12-08 07:32 UTC, crazy_snail
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazy_snail 2013-12-08 07:32:29 UTC
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.
Comment 1 Tomas Mysik 2013-12-09 08:07:58 UTC
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
Comment 2 crazy_snail 2013-12-09 22:42:50 UTC
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.
Comment 3 Tomas Mysik 2013-12-10 08:32:48 UTC
Fixed, thanks for catching that.

http://hg.netbeans.org/web-main/rev/355c77667ac4
Comment 4 crazy_snail 2013-12-10 09:28:06 UTC
(In reply to Tomas Mysik from comment #3)
> Fixed, thanks for catching that.
> 
> http://hg.netbeans.org/web-main/rev/355c77667ac4

Thank you sir! :-)
Comment 5 Tomas Mysik 2013-12-10 09:34:00 UTC
You are welcome ;)
Comment 6 Quality Engineering 2013-12-11 03:00:12 UTC
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'
Comment 7 kleeh 2017-09-27 01:41:27 UTC
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).
Comment 8 kleeh 2017-09-27 01:52:48 UTC
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.