Getting error while running sonar scanner

C:\Sonar\sonar-scanner-4.7.0.2747-windows\bin\sonar-scanner
INFO: Scanner configuration file: C:\Sonar\sonar-scanner-4.7.0.2747-windows\bin..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
INFO: Windows 11 10.0 amd64
INFO: User cache: C:\Users\bibhu.sonar\cache
INFO: Scanner configuration file: C:\Sonar\sonar-scanner-4.7.0.2747-windows\bin..\conf\sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 9.7.0.61563
INFO: Default locale: “en_IN”, source code encoding: “UTF-8”
INFO: Load global settings
INFO: Load global settings (done) | time=46ms
INFO: Server id: 147B411E-AYP-gginCM0o6alZmK0d
INFO: User cache: C:\Users\bibhu.sonar\cache
INFO: Load/download plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=27ms
INFO: Load/download plugins (done) | time=93ms
INFO: Process project properties
INFO: Process project properties (done) | time=0ms
INFO: Execute project builders
INFO: Execute project builders (done) | time=0ms
INFO: Project key: Bibhushree
INFO: Base dir: C:\webMethods\Bibhushree
INFO: Working dir: C:\webMethods\Bibhushree.scannerwork
INFO: Load project settings for component key: ‘Bibhushree’
WARN: SCM provider autodetection failed. Please use “sonar.scm.provider” to define SCM of your project, or disable the SCM Sensor in the project settings.
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=51ms
INFO: Load active rules
INFO: Load active rules (done) | time=1286ms
INFO: Load analysis cache
INFO: Load analysis cache (404) | time=0ms
INFO: Load project repositories
INFO: Load project repositories (done) | time=0ms
WARN: Property ‘sonar.flow.file.suffixes’ is not declared as multi-values/property set but was read using ‘getStringArray’ method. The SonarQube plugin declaring this property should be updated.
WARN: Property ‘sonar.node.file.suffixes’ is not declared as multi-values/property set but was read using ‘getStringArray’ method. The SonarQube plugin declaring this property should be updated.
INFO: Indexing files…
INFO: Project configuration:
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 3.053s
INFO: Final Memory: 9M/37M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Language of file ‘ns\Project\publish\publish\flow.xml’ can not be decided as the file matches patterns of both sonar.lang.patterns.xml : /*.xml,/.xsd,**/.xsl and sonar.lang.patterns.flow : /*.xml,/*.ndf

Solved with below thread
Language of file can not be decided error - SonarQube - Sonar Community (sonarsource.com)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.