35 votes

How to deactivate a rule in SonarQube?

for some one still looking for a answer like me (it took me few hours to resolve). Firstly, go to Quality Profiles Secondly: Select the profile you want then create a new copy of profile (if you ...
ThaiPD's user avatar
  • 451
7 votes

How to deactivate a rule in SonarQube?

On newer version of SonarQube (mine is 6.7.4): Go to http://localhost:9000/admin/settings?category=exclusions Scroll to Ignore Issues on Multiple Criteria Add Rule Key Pattern and File Path Pattern ...
Trang Ha Viet's user avatar
7 votes

How to deactivate a rule in SonarQube?

Follow below steps to disable any rule in SonarQube: Login by admin Go to quality profile & Select java/php profile [whichever is appropriate to you] Enter the rule as key and Search Uncheck the ...
Narendra Chandratre's user avatar
4 votes
Accepted

Can I deactivate a Sonar Qube rule just for test classes?

You can do this in Administration -> Configuration -> Analysis Scope -> Restrict Scope of Coding Rules. You need to specify the code of the rule (without spaces) and a file path pattern to filter. If ...
Michael Durrant's user avatar
3 votes

com.sonarsource.A.A.B.A: No license for swift Error on sonar

The Swift plugin is a commercial plugin and you need a licence to be able to analyze swift projects : https://www.sonarsource.com/products/codeanalyzers/sonarswift.html
Eric Hartmann's user avatar
3 votes

SonarQube: Close this "PreparedStatement" in a "finally" clause (dealing with false positives)

It is a false positive since as you say we trust that it is closed internally by the JdbcTemplate. SonarQube has the assumption that the block of code that constructs a PreparedStament is responsible ...
Liam Williams's user avatar
3 votes

Sonar scanner failer on force language to Kotlin

Do you need to force the SonarQube to set the language to Kotlin?? As I remembered, the sonar.language is somewhat deprecated (correct me if I am wrong). Right now, it will automatically detect the ...
ky-chan's user avatar
  • 329
2 votes
Accepted

Judge the project rating sonarQube

There is no golden standard for code quality statistics. Also older Stackoverflow questions about code duplication shows these topics are very opinionated. What good or bad statistics are will also ...
Niels van Reijmersdal's user avatar
2 votes
Accepted

I want to know working of sonarqube

Here is the step-by-step procedure to perform the scenario: Setup a Jenkins server if already not using. Goto plugin-manager of Jenkins to install “SonarQube Plugin”. Goto “System-configuration” of ...
prinz's user avatar
  • 552
2 votes
Accepted

Correlating assignees with authors in SonarQube

So here are your answers : Author is coming from the SCM data. According to your "strange" authors, I suspect you are using git and anyone can configure his account with any name (https://git-scm.com/...
Eric Hartmann's user avatar
2 votes
Accepted

Jenkins: failing builds on warnings

Regarding question 1: You could give the Warnings Plugin a try. Regarding question 2: Configure your SonarQube project, to have a Leak Period since "previous build" The SonarQube Leak Period ...
slartidan's user avatar
  • 136
1 vote

What are important rules of static analysis to use in our automated scripts?

How about an code review from an experienced senior developer, so that you can focus more on practical tips. Experience is incomparable to any tool at least in the current state of the tools. Having ...
Vishal Aggarwal's user avatar
1 vote

What are important rules of static analysis to use in our automated scripts?

Try out https://docs.sonarqube.org/display/SONAR/Analyzing+Source+Code Other possible ways If coding guidelines and standard followed. Duplicate code. Coding guidelines followed. Design principle ...
SANTI SANTOSH MAHAPATRA's user avatar
1 vote

Can code coverage be used for Java tests that work against a Python code base?

The very basic essence of the term API is to provide an interface for external communication. That said, it is perfectly fine and possible to use your tests written in Java to test API endpoint given ...
Ngadou Yopa's user avatar
1 vote

Unable to see Settings & Administrator tab on SonarQube dashboard

As per SonarQube documentation you have two options: a) in case you have forgot your admin password Execute this query on database for SonarQube to set password back to 'admin' for user admin. ...
Prome's user avatar
  • 1,016
1 vote

Mutliple users can access sonarqube

My SonarQube web-based instance has a menu "Administration" when I am logged in as the Admin users. On the Administration page there is dropdown "Security" which has the following items: Users ...
Niels van Reijmersdal's user avatar
1 vote

sonarqube server is not working

You already have something else on port 9000 that isn't sonar when you telnet in , it will need to be stopped before anything else can bind to that port. use losf to find out which process it is ...
Amias's user avatar
  • 1,202
1 vote
Accepted

Cobertura integration (for reports) should be integrated in Jenkins or SonarQube?

SonarQube only accepts processed data, so you have to generate the data while running tests with a build-server (Jenkins in your case). From the SonarQube code coverage documentation: The Java ...
Niels van Reijmersdal's user avatar
1 vote

Validate Quality Cobol code - Jenkins, Sonarqube/SonarLint and Rational/Topaz?

The next step is to create a proof of concept. Setup cobol code repository Create example cobol code to test jenkins/sonarqube features Create cobol unit-tests Setup Jenkins Create job to pull ...
Niels van Reijmersdal's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible