Questions tagged [sonarqube-web]

232 questions
1
vote
2 answers

Sonar name of rule [repository=xxx key=yyy] is empty

I am adding new Sonar rules for a internal language. The rule registration is ok, but then I get a 'Fail to start server' error from the sonar-plugin-api-4.4. All resources for the rule (name, description, level, importance, category) are…
Vlad
  • 11
  • 1
1
vote
1 answer

SonarQube QualityGate extension

We are using SonarQube 5.6 for a code base with a lot of legacy code. We defined a quality gate which checks that new code should be covered by at least 75%. Unfortunately there are classes which are not testable at all and minor code changes (e.g.…
Tobi
  • 47
  • 6
1
vote
1 answer

Sonar 5.6 Issues list - How to group by Issue Type all Issues

In Sonar I would like grouping by violated rule all Issues for one project (I use the 5.6 version). The expected result is that violated rules are all listed with their count and ordered by most frequent violation : rule XXA : 50 rule XXB : 42 rule…
davidxxx
  • 125,838
  • 23
  • 214
  • 215
1
vote
1 answer

What are the different ways to write a widget in SonarQube?

SonarSource has said that they would be dropping support for Ruby on Rails. So assuming that we would need to use Web APIs from here onwards, what are alternate ways of writing your widgets? Has anyone tried any alternate ways of writing one? And…
Dhruvan Ganesh
  • 1,502
  • 1
  • 18
  • 30
1
vote
1 answer

Sonarqube 6.0: How can an issue be assiged to an user from a plugin?

What type of SQ plugin interface should I use for assignment of issues to an user? Sensor, MeasureComputer, other? What would be the main related classes and/or interfaces? Any source file to check?
palevi
  • 111
  • 5
1
vote
1 answer

SonarQube 6.0 Link to code for issues not working

We have an issue since our upgrade to SonarQube 6.0 that on the issues page the link icon or the right arrow icon no longer link to the code. In this case clicking either link takes you to another (smaller) list of issues. This is not the case for…
1
vote
1 answer

SnarQube Issue resolution null inside compute() method

In my class that implements MeasureComputer, I am getting a issue resolution status null. FYI: I can read issue type, but not issue resolution. Need help on this. Here is my code snippet. ------------------------------------------ import…
Sarker
  • 922
  • 7
  • 16
1
vote
1 answer

How to obtain line number at the node visitor during tree building in sonarqube plugin

For more complex analysis puproses we need to collect some info into Sensor implementation class and next line number binding. Where can I find line number of tree element? java.plugin.version: 3.13.1 sonar.plugin.api.version: 5.2 May be newer…
1
vote
1 answer

can Sonarqube analyse code only on latest perforce changelists

can Sonarqube analyse code only on latest perforce changelists.I don't want code review on the whole code base as its Legacy code written 10-15 yrs back. can you please help me here or point me to any documentation. Thanks in Advance.
1
vote
1 answer

how to get rules and their params with value sonarqube plugin api

I am trying to developing sonar plugin. But i couldnt get rule with params. Here my custom rule. custom-rule-key custom rule
onua
  • 23
  • 1
  • 6
1
vote
1 answer

Bugzilla integration with sonarqube

I want to setup one build automation environment, in which code should be statically analysed first, and the issues which are identified as part of static analysis should be raised as bugs. for static analysis, I am using sonarQube and for bugs, I…
1
vote
0 answers

SonarQube: is it possible to have a issue filter for a specific rule and for the current scope?

I created a issue filter in SonarQube that includes only the issues that matches a specific set of rules. Then I created a dashboard and included the widget "Issue Filter" and selected the filter I have created before. If I try to access this…
xsilmarx
  • 729
  • 5
  • 22
1
vote
2 answers

Sonar where to check for the Documented Api configuration

After upgrading Sonar to a newer version (5.6.1), we had our Public Api Documentation measure crash down to 40% Looking on Sonar website, I found that there is a configuration key that define if the Getters & Setters are counted in the documentated…
TheBakker
  • 2,852
  • 2
  • 28
  • 49
1
vote
0 answers

sonarqube plugin can't use jsonp

I try to write a SonarQube widget plugin which accesses Jenkins build information by jsonp(json with padding). This is my html file: