I have installed code sniffer with below steps ,
Download phpcs.phar file from below link https://github.com/squizlabs/PHP_CodeSniffer
Go to NetBeans -> Tools -> plugins . install PHPCSMD.
Now go to Tools -> options -> PHP, Find “Code Analysis”. Put phar file path here.
Closed netbeans
open again netbeans.
right click on my project file and click on check for violation.
but it not gives me any result.