You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-Custom rules reported by [plugin](https://github.com/gretard/sonar-sql-plugin/blob/master/docs/pluginRules.md)
24
+
-SQL code violations reported by the[plugin](https://github.com/gretard/sonar-sql-plugin/blob/master/docs/pluginRules.md)
24
25
- Reporting of code coverage calculated by [SQLCover](https://github.com/GoEddie/SQLCover)
25
26
- Lines and comment lines measures reporting
26
27
- Cognitive and cyclomatic complexity metrics reporting
27
-
- Custom user rules. Configuration can be found at [here](https://github.com/gretard/sonar-sql-plugin/blob/master/docs/customRulesSetup.md)
28
+
- Custom user rules. Users can define additional detection rules in the declarative format for the supported SQL dialects. These rules can report code violations specific to the code base and domain. For example, user wants to see code violdations where after each INSERT statement COMMIT statement is not found. Plugin does not report such code, however, if user defines custom rule in the declarative format, then SonarQube will report such violations. More details can be found at [here](https://github.com/gretard/sonar-sql-plugin/blob/master/docs/customRulesSetup.md)
28
29
29
30
## Tutorials ##
30
31
Tutorials:
31
32
-[Integrating Redgate SQL Code Guard with SonarQube](https://www.red-gate.com/hub/product-learning/sql-change-automation/integrating-redgate-sql-code-guard-with-sonarqube)
33
+
-[Scanning a TSQL Project With SonarQube](https://dzone.com/articles/getting-tsql-project-scanned-with-sonarqube)
32
34
33
35
## Requirements ##
34
36
Different plugin versions supports the following:
35
37
- 1.0.0 - Sonarqube 7.4+versions
36
38
- 1.2.0 - Sonarqube 9+versions
39
+
- 1.3.0 - Sonarqube 9+versions
37
40
38
41
## Installation ##
39
42
1. Download and install SonarQube
@@ -62,15 +65,16 @@ sonar.sql.dialect=tsql
62
65
### PostgreSQL ###
63
66
Sonar settings for pssql. You can check example at [here](https://github.com/gretard/sonar-sql-plugin/tree/master/examples/2-pssql)
64
67
```
65
-
sonar.projectKey=examples.sql.mysql.project
66
-
sonar.projectName=examples.sql.mysql.project
68
+
sonar.projectKey=examples.sql.psql.project
69
+
sonar.projectName=examples.sql.psql.project
67
70
sonar.projectVersion=1.1
68
71
sonar.sources=src
69
72
# optional
70
73
sonar.language=sql
71
74
sonar.sql.dialect=pssql
72
75
```
73
76
77
+
74
78
### MySQL ###
75
79
Sonar settings for mysql. You can check example at [here](https://github.com/gretard/sonar-sql-plugin/tree/master/examples/3-mysql)
76
80
```
@@ -126,6 +130,7 @@ Added container definitions for easy development with VSCode. Download the [remo
126
130
1) Then you can lifecycle > package target to build the plugin. The .jar file will end up in the *sonar-sql-plugin/src/sonar-sql-plugin/target/* folder.
127
131
2) Copy the jar to the plugins folder of your sonarqube instance
0 commit comments