How Analyze PL/SQL


I am in doubt about how the analysis of PLSQL is done,

In the projects used by the company, we use the maven plugin to analyze Java and what do we use for PLSQL?


For a pure PL/SQL project you would use the vanilla SonarScanner. If the PL/SQL is in a Maven project, then you’ll need to override sonar.sources on the analysis command line.

SonarScanner for Maven picks up the location of the source files from the Maven environment, which is Java-centric & only recognizes the .java files. So you would need to override the value to include all your source files. E.G.:

mvn sonar:sonar -Dsonar.sources=src/main/java,src/main/plsql,&etc


Thank you, it helped a lot

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.