T-SQL
T-SQL analysis is available starting in SonarQube Server Developer Edition.
Language-specific properties
Discover and update the T-SQL-specific Analysis parameters in Administration > Configuration > General Settings > Languages > T-SQL
Important note
With the default configuration, only files with the .tsql are analyzed as T-SQL, and files with the .sql file extension are analyzed as PL/SQL. This behavior is defined in Administration > Configuration > General Settings > Languages > T-SQL > File Suffixes and Administration > Configuration > General Settings > Languages > PL/SQL > File Suffixes. You can override these properties either at the server level or at the project level.
In-line suppression of issues
Adding the -- NOSONAR comment at the end of the line will suppress all issues on that line.
Rather than relying on this method, we suggest refining your analysis scope to avoid creating major gaps in your code review. Because the NOSONAR comment silences all current and future issues on a line without regard for their severity, it is an imprecise tool. Even if you only intend to hide a minor stylistic point, you could unintentionally obscure a serious security flaw.
Related pages
Last updated
Was this helpful?

