sonar-java | SonarSource Static Analyzer for Java Code Quality | Code Analyzer library

 by   SonarSource Java Version: License: LGPL-3.0

kandi X-RAY | sonar-java Summary

kandi X-RAY | sonar-java Summary

sonar-java is a Java library typically used in Code Quality, Code Analyzer applications. sonar-java has no bugs, it has no vulnerabilities, it has build file available, it has a Weak Copyleft License and it has medium support. You can download it from GitHub, Maven.

Code Quality and Security for Java

            kandi-support Support

              sonar-java has a medium active ecosystem.
              It has 1015 star(s) with 634 fork(s). There are 73 watchers for this library.
              There were 4 major release(s) in the last 12 months.
              sonar-java has no issues reported. There are 16 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of sonar-java is

            kandi-Quality Quality

              sonar-java has no bugs reported.

            kandi-Security Security

              sonar-java has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              sonar-java is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              sonar-java releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed sonar-java and discovered the below as its top functions. This is intended to give you an instant insight into sonar-java implemented functionality, and help decide if they suit your requirements.
            • Get the output .
            • Compute an appropriate URL that will be used for the given parameters .
            • Build the tree .
            • Perform the actual match
            • Returns the next token .
            • Creates the dynamic javascript .
            • Add the given URL to the URL .
            • Validates a validating value for a field
            • Add rules to digester .
            • Format value .
            Get all kandi verified functions for this library.

            sonar-java Key Features

            No Key Features are available at this moment for sonar-java.

            sonar-java Examples and Code Snippets

            How to add checkstyle to a libGDX project?
            Lines of Code : 89dot img1License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            $ ./gradlew tasks --all | grep checkstyle
            android:checkstyleMain - Run Checkstyle analysis for main classes //<-- this should not be here :)
            core:checkstyleMain - Run Checkstyle analysis for main classes
            desktop:checkstyleMain - Run Che
            Possible eclipse bug
            Javadot img2Lines of Code : 26dot img2License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            public static class FilterResult {}
            public static class WrappedFilterResult extends FilterResult {}
            public interface ACComparator {}
            public static 
              void filter1(ACComparator> comparator) {
                // both compile fine with normal Java co
            Parsing JSON data from CLOB field using PL/SQL
            Lines of Code : 31dot img3License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            CREATE TABLE t AS 
              SELECT 1   AS id, 
                     To_clob('{   "key" : "PRODUCT_NAME",   "value" : "Myproduct" }, {   "key" : "PRODUCT_TYPE",   "value" : "Electronics" }, {   "key" : "PRODUCT_PRICE",   "value" : "123456789.1" }') AS j 
            Can someone help me with an XPages DataView control for a mobile application?
            Lines of Code : 20dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
                var docnum = ventry.getColumnValues()[1];
                var custname = ventry.getColumnValues()[4];
                var ndt = ventry.getColumnValues()[5];
                var itemlist = ventry.getColumnValues()[2];  //item~desc+item~desc
                var itmds
            Parquet Data Ingestion in Druid Error in Timestamp parsing using Joda
            Javadot img5Lines of Code : 43dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            String s = "2017-09-01 21:14:11:552 IST";
            Map preferredJodaZones =
                Collections.singletonMap("IST", DateTimeZone.forID("Asia/Kolkata"));
            DateTimeUtils.setDefaultTimeZoneNames(preferredJodaZones); // attention: static (global)
            Flink type extraction problems with custom generic class
            Lines of Code : 20dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy

            Community Discussions


            Getting Error on Sonarqube 3.9.0 when I run remotely Local is working fine
            Asked 2021-Sep-28 at 05:48

            When I run sonarqube on server I am always getting below error



            Answered 2021-Sep-28 at 05:48

            When you do a sonar analysis using maven you don't need to configure manually.

            The error (Your project contains .java files, please provide compiled classes with property, or exclude them from the analysis with sonar.exclusions property) you are experiencing because sonar maven plugin expects the compiled classes in your target\classes folder and the class files are missing. This is due to executing the sonar analysis before the java files are compiled.

            To solve this first execute mvn package and then execute maven sonar analysis.



            Cppcheck errors are not getting reported in SonarQube 7.9.5 using Sonar-cxx community plugin v1.3.3
            Asked 2021-Feb-16 at 05:45

            I am having SonarQube Community Edition (v7.9.5) server running with sonar-cxx community plugin v1.3.3

            Now for a test C++ project, I have generated cppcheck (v2.3) analysis report and ran sonar-scanner ( as follows.



            Answered 2021-Feb-16 at 05:45

            The issue cause is found after doing some more digging.

            Issue cause: The default quality profile corresponding to the C++ (Community) had their all rules disabled by default, and there was no option to enable them as well.

            Fix: Created a new quality profile extending the default one, then enabled rules for that, and finally made it as the default quality profile for C++ (Community) solves the issue.

            Update (16-Feb-'21): Got a clarification from sonar-cxx team that this is intentional as well, and the same is documented in

            Since the cxx plugin contains a large number of sensors with over 4000 rules, all rules are initially deactivated in the default profile Sonar way for the programming language CXX. Enabling all rules would have a negative impact on the analysis performance and mostly only a subset is needed.

            Therefore, after installation, no sensor issues are displayed. To display issues, the corresponding rules must first be enabled in the Quality Profile being used by the project.



            Change kubernetes stroge class mounted value from another pod
            Asked 2020-May-31 at 21:14

            I want to publish sonarqube with kubernetes. I did successfully with official packages. But i want to use some plugins old version and some custom plugins. In local with docker-compose files, i created a fly-away container that fills the plugins directory(/opt/sonarqube/extensions/plugins) with plugins. And use that volume with sonarqube container. As a conclusion : Sonarqube extensions volume directory is created (or filled) from different container(do the job and die).

            I want to use the same path with kubernetes but couldn't do that. My flyaway container didn't fill the path.

            My kubernetes deployments files:

            1-) sonar-pvc-extensions.yml



            Answered 2020-May-30 at 20:38

            Are you sure, you want to use the same directory for container volume mounts and to store the plugins. I believe this is causing a conflict. Can you try changing the volume mount directory (in deployment container spec)?



            GitLab SonarQube CI/CD variables are not passed to the Pipeline
            Asked 2020-Feb-06 at 11:24

            I was trying to integrate the GitLab CI/CD with SonarQube 8.1 based on the following documentation

            I tried to use the SonarScanner for Maven sample configurations



            Answered 2020-Feb-06 at 11:24

            The documentation seems not up-to-date.

            You should add and arguments to the maven command to ovveride the default settings :


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install sonar-java

            You can download it from GitHub, Maven.
            You can use sonar-java like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the sonar-java component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer For Gradle installation, please refer .


            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone SonarSource/sonar-java

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Code Analyzer Libraries


            by airbnb


            by standard


            by eslint


            by rome


            by python

            Try Top Libraries by SonarSource


            by SonarSourceJava


            by SonarSourceTypeScript


            by SonarSourceTypeScript


            by SonarSourceShell


            by SonarSourceC#