I have installed SonarQube server on my local and installed Sonarlint plugin in Eclipse (Version: 2020-06 (4.16.0) - Build id: 20200615-1200)
I have established connection between SonarQube server and Sonarlint, which is working ok, but it’s not showing suggestion / errors in on fly Sonarlint tab when I do mistake.
I have spent days to fix this but no help, this is really hectic, this should work as expected.
But, I getting following error, I haven’t set PHP exclusion in SonarQube / SonarLink. Can you please guide if still any configuration is pending ?
Connected mode (using configuration of 'XXXX' in connection '000.00.0.0')
Starting analysis with configuration:
[
projectKey: XXXX
baseDir: /XXXX/XXXX/XXXX/XXXX
extraProperties: {}
inputFiles: [
file:/XXXX/XXXX/XXXX.php (UTF-8)
]
]
Error while trying to inject SonarLintPythonIndexer
TypeScript sensor excluded
Start analysis
Index files
Language of file 'file:/XXXX/XXXX/XXXX.php' is detected to be 'PHP'
File [file:/XXXX/XXXX/XXXX.php] is excluded by 'sonar.php.exclusions' property and will not be analyzed
'[uri=file:/XXXX/XXXX/XXXX.php]' excluded by org.sonar.plugins.php.PhpExclusionsFileFilter
0 files indexed
Available languages:
* Scala => "scala"
* Python => "py"
* Java => "java"
* HTML => "web"
* JSP => "jsp"
* XML => "xml"
* Kotlin => "kotlin"
* PHP => "php"
* JavaScript => "js"
* TypeScript => "ts"
* Ruby => "ruby"
Quality profiles:
* java: 'Sonar way' (423 rules)
* js: 'Sonar way' (129 rules)
* jsp: 'Sonar way' (0 rules)
* kotlin: 'Sonar way' (36 rules)
* php: 'Sonar way' (112 rules)
* py: 'Sonar way' (115 rules)
* ruby: 'Sonar way' (28 rules)
* scala: 'Sonar way' (28 rules)
Unable to find the quality profile AXp_bn_OpAdz1f4UyHWT in the SonarLint storage. You should update the storage, or ignore this message if the profile is empty.
* ts: 'Sonar way' (0 rules)
* web: 'Sonar way' (27 rules)
* xml: 'Sonar way' (6 rules)
'JavaSensor' skipped because there is no related file in current project
'Scala Sensor' skipped because there is no related file in current project
'Python Sensor' skipped because there is no related file in current project
Execute Sensor: JavaXmlSensor
'HTML' skipped because there is no related file in current project
'XML Sensor' skipped because there is no related file in current project
'Kotlin Sensor' skipped because there is no related file in current project
'PHP sensor' skipped because there is no related file in current project
'Analyzer for "php.ini" files' skipped because there is no related file in current project
'JavaScript analysis' skipped because there is no related file in current project
'Ruby Sensor' skipped because there is no related file in current project
Found 0 issue(s)
Done in 318 ms
By default, sonar.php.exclusions has value **/vendor/** (see the implementation ticket for the rationale behind this), so if your PHP files are under a directory named vendor they will be excluded from analysis by default.
You can override this setting on your SonarQube server, synchronize your binding in the IDE and close/re-open a file to see issues appear