TSQL scan not working...getting indexed with language 'null'

Must-share information (formatted with Markdown):

  • SonarQube Developer Edition 7.9.1
  • Running T-SQL Scan locally.
  • Trying to run T-SQL sonar-scan locally [Windows 10 machine] pointing to a developer edition server with T-SQL plugin installed and enabled

All my SQL files have the .sql extension.

Here is my sonar-project.properties (Hid actually values where appropriate}

sonar.projectKey={databasename}
sonar.projectName={databasename}
sonar.projectVersion=1.0
sonar.host.url={developerEditionwithtSQLPluginEnabledUrl}
sonar.tsql.cg.path={codeguardExePath}
sonar.tsql.cg.report={alreadyrunCodeguardReportPath}
sonar.exclusions=**/bin/**/*.*,**/obj/**/*.*,**/*.sqlproj,**/.git/**/*.*
sonar.login={loginToken}
sonar.sources={source}
sonar.sourceEncoding=UTF-8
sonar.verbose=true
sonar.lang.patterns.plsql=sql,tsql,.sql
sonar.plsql.file.suffixes=.sql

It seems there’s a mistake in the last 2 lines of your sonar-project.properties:

Try replacing them with:

sonar.tsql.file.suffixes=.sql
sonar.plsql.file.suffixes=.plsql