DVB
(Youri Pol)
September 24, 2019, 5:03am
1
When I look in SonarCloud, I always have the following warning:
The Data Dictionary is not configured which prevents rule(s) S3641, S3921, S3618, S3651 to raise issues. See https://docs.sonarqube.org/display/PLUG/Data+Dictionary
However we don’t use any oracle connection, but SQL connection. How do we need to configure this to prevent this warning from coming up?
1 Like
pynicolas
(Pierre-Yves Nicolas)
October 7, 2019, 10:54am
3
I’m not sure what you mean by:
we don’t use any oracle connection, but SQL connection.
Some possible workarounds:
Exclude sql files from the analysis:
sonar.exclusions=**/*.sql
Remove the rules mentioned in the message from the PL/SQL quality profile which is used by your project
DVB
(Youri Pol)
October 14, 2019, 7:01am
4
I mean that we don’t use Oracle databases, but only Microsoft SQL databases.
We don’t want to exclude the sql files, because there is a lot of business logic in the Stored Procedures.
Do you have any tips how to fill in these parameters for Microsoft SQL server/database
https://docs.sonarqube.org/latest/analysis/languages/plsql/
pynicolas
(Pierre-Yves Nicolas)
October 14, 2019, 9:05am
5
I suggest that you configure your project so that files with a “.sql” suffix are analyzed by the T-SQL analyzer instead of the PL/SQL analyzer:
sonar.tsql.file.suffixes=sql,tsql
sonar.plsql.file.suffixes=pks,pkb
2 Likes
msymons
(Mark Symons)
December 16, 2020, 6:14pm
6
I suggest that you configure your project so that files with a “.sql” suffix are analyzed by the T-SQL analyzer instead of the PL/SQL analyzer:
But is this valid if the The *.sql
files are written in PLSQL?
pynicolas
(Pierre-Yves Nicolas)
December 17, 2020, 2:14pm
7
No. The user who asked the original question mentioned that:
My understanding was that this user had .sql
files containing T-SQL code.
DVB
(Youri Pol)
December 17, 2020, 2:30pm
8
@pynicolas that is correct.
This ticket is allready over a year old and I am not working at the company where this issue was. I don’t know the status is any more.
joereloc
(Joe Sams)
July 4, 2022, 6:19pm
9
Hi,
I saw this reply of yours, but I’m curious, I’m using sonarcloud with bitbucket pipeline. Is there a way to inject this as a script part in the pipeline?
pynicolas
(Pierre-Yves Nicolas)
July 19, 2022, 11:37am
10
Sorry, I don’t know anything about Bitbucket pipeline.
I suggest that you open a new thread because this one is quite old and not really related to your question.
AFMiziara
(Alexandre Miziara)
July 27, 2022, 11:50pm
11
Does sonar.plsql.file.suffixes
supports some kind of regex?
I have the situation where my .sql
files are in the following format:
example.up.sql
example.down.sql
Apparently, sonar does not recognize it. I already tried setting:
sonar.plsql.file.suffixes=sql
and
sonar.plsql.file.suffixes=sql,up.sql,down.sql
None of the above worked.