Questions tagged [sonar-plugin]

25 questions
7
votes
2 answers

Sonarqube PLSQL Custom rule for detecting correct SQL terminator semicolon within a SQL script file

I am using Jenkins and SONARQUBE PL/SQL plugin for Oracle SQL code analysis, I need to create Custom rules using XPATH for Quality Analysis of the SQL Script files that are sent for deployment over Jenkins. I am trying to create a custom rule that…
aejaz
  • 105
  • 1
  • 10
2
votes
1 answer

Read a build.gradle file from Java

I want to analyze the build.gradle of my organization projects, primarily to create a sonarqube plugin that report the use of a dependency or the absence of a dependency. The sonarqube plugin will be writed in Java and the input will be the .gradle…
2
votes
1 answer

Convert rules written in PMD to sonar custom rules

I'm using PMD to add custom rules to my repository. Right now I'm planning to use sonarqube to analyze my local repositories. Is there any way to convert custom rules written in PMD to sonar custom rules.
Manoj Kumar
  • 289
  • 4
  • 12
1
vote
1 answer

Gradle does not display all plugins in dependency tree

Use Case I am trying to generate a dependency tree containing all plugins and dependencies for all configurations, but org.sonarqube is not included in the tree. I am working with a basic, single-module project and am using Gradle…
user17544628
1
vote
0 answers

Bootstrap sonarqube with Qulity Gates and Quality Profiles

I am trying to create sonarqube with docker-compose, one of the requirements to include quality profiles and quality gates to be available, once bring up the server by using docker-compse up command readily to the developers. Is there a possibility…
Paramesh Korrakuti
  • 1,997
  • 4
  • 27
  • 39
1
vote
0 answers

Custom sonar-xml plugin highlighting conflict

I've developed a custom XML plugin for Sonar, based on a fork of official sonar-xml plugin following these recommendations. When I develop the custom plugin the sonar-xml version was 1.5.1 and and both plugins work fine together in SonarQube 5.6.6.…
irinacen
  • 11
  • 2
1
vote
1 answer

Integration of SonarQube with ISML

How to integrate ISML language plugin in sonarqube and analyze the code to get report? I can see there is no plugin for ISML in sonarqube. How can I integrate the additional plugins into sonarqube? I'm using ISML linter for this currently, but that…
SonarQ
  • 31
  • 1
  • 2
1
vote
0 answers

coverity-sonar-plugin cannot connect synopsys repositry

I am trying to use "coverity-sonar-plugin" in the git hub below. URL: https://github.com/coverity/coverity-sonar-plugin Though I build my java project with the command "mvn sonar:sonar" after finishing all of the settings in README, I got…
teachi15
  • 29
  • 4
1
vote
1 answer

How to reach PropertyDefinitions properties

In the JavaDoc, it's clearly defined how to set a property in SonarQube using org.sonar.api.config.PropertyDefinition in a plugin, however there is nothing on how to get it. It seems to not work like System.getProperty(key) in Java, so, should I…
Waldo
  • 189
  • 1
  • 8
1
vote
1 answer

SonarQube 6.7.2 doesn't start because of PLSQL

We upgraded from SonarQube 5.6 to 6.7.2 and also manually upgraded the plugins, including SonarPLSQL from 2.8 to 3.2.0 We are using the community version but have a valid (paid) licence for the plugin. When trying to start we get the…
1
vote
2 answers

StashIssueReportingPostJob not enabled - how to enable?

using the AmadeusIT sonar-stash plugin... After branching from main for feature/sprint we updated code locally and added, committed and pushed to BitBucket, creating a pull request. We'd like to run a scan and see the issues presently only for the…
randomNerdboy
  • 320
  • 1
  • 3
  • 14
1
vote
1 answer

Why are my added NewIssues not transfered to sonar? (Custom Sonar Plugin)

Heyho, I have my sonar-kotlin-plugin up and running. My RuleDefinitions are dislayed on the Rules-page, but when analyzing some kotlin projects the found issues are not saved. My sensor-issue-adding-code looks like this: private fun…
abosch
  • 21
  • 4
1
vote
0 answers

Adding files to FileSystem of the context dynamically

I am developing a custom sonar plugin. My usecase requires me to create a file and add it to the context of the Sensor dynamically. Below is the code snippet from my class which implements Sensor interface. String filePath="path to my temp…
Ram
  • 1,154
  • 6
  • 22
1
vote
1 answer

Test Automation Execution reports in SonarQube

I don't know much about Sonar Qube. This is regarding test automation reports using SonarQube. Basically we have Code Coverage and Quality gate reports for different languages in Sonar. But can be have a simple looking Pass/Fail report integrated…
Saumya
  • 82
  • 3
  • 10
1
vote
1 answer

How to run a local Sonar check before merging to a GIT repository?

In my current project, whenever a GIT merge of a feature branch is performed to master, a remote Sonar analysis is performed with SonarQube. I heard from my colleagues that they tried the Sonar plugin for Intellij and it passed their code, however…
user998692
  • 5,172
  • 7
  • 40
  • 63
1
2