Need to add codesniffer, psr-1, psr-2, pmd rules in sonarqube. I tried finding plugin but get sonar-php-codesniffer0.2 plugin which is compatible only upto sonarqube>2.0. Also there is no way to import custom php rules in sonarqube6.1 or updated versions. How can now i add these rules to sonarqube for code quality analysis?
Unable to add codesniffer, psr-1, psr-2, pmd rules in sonarqube
588 Views Asked by YATIN GUPTA At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in SONARQUBE
- How to specify SonarQube rule description as a markdown/html resource file instead of using annotation?
- No 'Code Coverage' decorations in SonarQube 5.1+
- Upgrade H2 from sonarqube 4.5.1 to 5.1.1
- Logging error when executing Maven SonarQube plugin
- Analysis fails on PHP project with NullPointerException, fails on foreach($arrayOfArrays as list($item1, $item2)) {}
- Sonarqube ghost projects in issues
- Sonnar runner in Jenkins error in java project
- Reports missing on SonarQube dashboard after upgrade
- Exception in SonarQube.Msbuild.Runner
- How can I integrate ReSharper's Dotsettings File in SonarQube?
- Upgrade from SonarQube 4.3.2 to 4.5LTS (No Response)
- Properties file exclude multiple paths
- Technical debt on custom web rule in sonarqube 5.1
- sonar project.properties to ignore files containing a regular expression
- Sonarqube SVN Plugin fails with code E155007 'is not a working copy'
Related Questions in PMD
- Eclipse-PMD Configure ruleset globally
- Gradle: Setting PMD Arguments minimumPriority and shortFilenames
- How to avoid premature initialization if the variable is only used inside of a scope
- How to use PMD with sonarqube
- How can getters/setters be ignored in the PMD CommentRequired rule?
- Why does comparing enums using == cause a PMD warning?
- pmd:UseConcurrentHashMap not working?
- Why "Sonar Way with find bugs" has no PMD rule repository?
- Exclude PMD rule in build.gradle file
- How to achieve hard-code voilations with CodePro?
- How to export and import a set of rules selected from the predefined rules in the rules configuration of the Eclipse Plugin PMD?
- How to exclude a file for checking in PMD maven pom.xml file?
- PMD multiple rulesets pass build but single ruleset fails build
- Detecting code smells in git repository using Eclipse plugins?
- Use PMD's Copy/Paste Detector with Gradle
Related Questions in PHPCODESNIFFER
- What are the main differences between the PSR-2 coding standard and the Symfony2 code standard for phpcs?
- How to add multiple paths for phpcs?
- Issue running code sniffer on Mac
- Integrating CodeSniffer with Komodo IDE to sniff remote files
- PHPMD - Avoid using Static Access to class - Using a constant?
- Multi-line function call not indented correctly
- Visualize PHP code with Checkstyle report (from CodeSniffer)
- How to I display results of phpcs in VIM?
- Customize tags list for MissingTag rule
- Dependencies graph for large PHP application
- PHP_CodeSniffer not following provided external standard
- codesniffer using pear standard ignore line indent
- Unable to test Symfony2 console command
- Exclude a specific PHPCS rule for a specific file
- PSR-2 CodeSniffer standard for eclipse plugin PHP_CodeSniffer
Related Questions in PSR-1
- Writing output in a function of a class is what I should not do?
- PSR for using description of class
- Is class declaration and object initialization in the same file PSR-1 compliant?
- Which version of PSR is valid?
- PhpStorm enforcing PSR-2 on a subset of files
- Unable to add codesniffer, psr-1, psr-2, pmd rules in sonarqube
- Resolve a PHPCS error in a Laravel migration file
- PSR-1: 2.3. Side Effects: variable inside config file
- PSR for nested IF condition
- Is there any PSR / convention about Alternative Syntax?
- PHP | define() vs. const
- class name always StudlyCaps or there's exceptions on PSR-1?
- Why NetBeans complains about PSR-1 violation when assigning returned value?
- What is the PSR-1 Compliant Alternative to Using ini_set()?
- PHP PSR1 echo side effects
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can create a new plugin which imports issues from other tools (like CodeSniffer) into SonarQube.
See for example https://github.com/SonarQubeCommunity/sonar-cppcheck or https://github.com/Designite/sonar-designite-plugin.
Moreover you can create your own custom rules (docs) for SonarPHP.
Note that SonarPHP already has some coverage for psr-1 and psr-2 (rules list).