Sonar Cloud fails to find tsconfig.json resulting in no typescript files scanned

Template for a good new topic, formatted with Markdown:

  • ALM used Azure DevOps
  • CI system used Azure DevOps
  • Scanner command used when applicable (private details masked)
  • Languages of the repository C#, Typescript, JavaScript, HTML, CSS
  • Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
2022-04-13T13:19:56.8015641Z ==============================================================================
2022-04-13T13:19:56.8015961Z Task         : Run Code Analysis
2022-04-13T13:19:56.8016250Z Description  : Run scanner and upload the results to the SonarCloud server.
2022-04-13T13:19:56.8016499Z Version      : 1.29.1
2022-04-13T13:19:56.8016692Z Author       : sonarsource
2022-04-13T13:19:56.8017240Z Help         : Version: 1.29.1. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

[More Information](https://docs.sonarcloud.io/advanced-setup/ci-based-analysis/sonarscanner-for-azure-devops/)
2022-04-13T13:19:56.8017870Z ==============================================================================
2022-04-13T13:19:57.1937649Z [command]D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.26.1\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe end
2022-04-13T13:19:57.2854883Z SonarScanner for MSBuild 5.5.3
2022-04-13T13:19:57.2856089Z Using the .NET Framework version of the Scanner for MSBuild
2022-04-13T13:19:57.3488006Z Post-processing started.
2022-04-13T13:19:57.7624312Z Calling the TFS Processor executable...
2022-04-13T13:19:58.0084245Z Attempting to locate the CodeCoverage.exe tool...
2022-04-13T13:19:58.0229176Z Attempting to locate the CodeCoverage.exe tool using setup configuration...
2022-04-13T13:19:58.1115774Z Code coverage command line tool: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe
2022-04-13T13:19:58.2029111Z Fetching code coverage report information from TFS...
2022-04-13T13:19:58.2035082Z Attempting to locate a test results (.trx) file...
2022-04-13T13:19:58.3578111Z Looking for TRX files in: D:\a\1\TestResults
2022-04-13T13:19:58.3583266Z No test results files found
2022-04-13T13:19:58.4933105Z Did not find any binary coverage files in the expected location.
2022-04-13T13:19:58.4957195Z Falling back on locating coverage files in the agent temp directory.
2022-04-13T13:19:58.4958327Z Searching for coverage files in D:\a\_temp
2022-04-13T13:19:58.4958865Z No coverage files found in the agent temp directory.
2022-04-13T13:19:58.4959423Z Coverage report conversion completed successfully.
2022-04-13T13:19:58.5095880Z The TFS Processor has finished
2022-04-13T13:19:58.5176635Z Calling the SonarScanner CLI...
2022-04-13T13:19:59.6853898Z INFO: Scanner configuration file: D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.26.1\classic-sonar-scanner-msbuild\sonar-scanner-4.6.2.2472\bin\..\conf\sonar-scanner.properties
2022-04-13T13:19:59.6914936Z INFO: Project root configuration file: D:\a\1\.sonarqube\out\sonar-project.properties
2022-04-13T13:19:59.9003345Z INFO: SonarScanner 4.6.2.2472
2022-04-13T13:19:59.9004086Z INFO: Java 11.0.14.1 Eclipse Adoptium (64-bit)
2022-04-13T13:19:59.9004616Z INFO: Windows Server 2019 10.0 amd64
2022-04-13T13:20:00.9333054Z INFO: User cache: C:\Users\VssAdministrator\.sonar\cache
2022-04-13T13:20:04.4524810Z INFO: Scanner configuration file: D:\a\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.26.1\classic-sonar-scanner-msbuild\sonar-scanner-4.6.2.2472\bin\..\conf\sonar-scanner.properties
2022-04-13T13:20:04.4527467Z INFO: Project root configuration file: D:\a\1\.sonarqube\out\sonar-project.properties
2022-04-13T13:20:04.4733031Z INFO: Analyzing on SonarCloud
2022-04-13T13:20:04.4734483Z INFO: Default locale: "en_US", source code encoding: "windows-1252" (analysis is platform dependent)
2022-04-13T13:20:05.8824061Z INFO: Load global settings
2022-04-13T13:20:06.6440558Z INFO: Load global settings (done) | time=763ms
2022-04-13T13:20:06.6569009Z INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
2022-04-13T13:20:06.6894675Z INFO: User cache: C:\Users\VssAdministrator\.sonar\cache
2022-04-13T13:20:06.6983013Z INFO: Load/download plugins
'capsinc_CompositeHubCore'
2022-04-13T13:20:50.5309623Z INFO: Load project settings for component key: 'capsinc_CompositeHubCore' (done) | time=140ms
2022-04-13T13:20:50.5699350Z INFO: Process project properties
2022-04-13T13:20:50.6369325Z INFO: Execute project builders
2022-04-13T13:20:50.8435054Z INFO: Execute project builders (done) | time=208ms
2022-04-13T13:20:50.8570438Z INFO: Project key: capsinc_CompositeHubCore
2022-04-13T13:20:50.8571225Z INFO: Base dir: D:\a\1\s
2022-04-13T13:20:50.8571756Z INFO: Working dir: D:\a\1\.sonarqube\out\.sonar
2022-04-13T13:20:51.1064220Z INFO: Load project branches
2022-04-13T13:20:51.2526840Z INFO: Load project branches (done) | time=147ms
2022-04-13T13:20:51.2559521Z INFO: Check ALM binding of project 'capsinc_CompositeHubCore'
2022-04-13T13:20:51.3878913Z INFO: Detected project binding: BOUND
2022-04-13T13:20:51.3881863Z INFO: Check ALM binding of project 'capsinc_CompositeHubCore' (done) | time=133ms
2022-04-13T13:20:51.3909523Z INFO: Load project pull requests
2022-04-13T13:20:51.5231741Z INFO: Load project pull requests (done) | time=132ms
2022-04-13T13:20:51.5259755Z INFO: Load branch configuration
2022-04-13T13:20:51.5279700Z INFO: Load branch configuration (done) | time=2ms
2022-04-13T13:20:51.5689813Z INFO: Load quality profiles
2022-04-13T13:20:51.7606006Z INFO: Load quality profiles (done) | time=192ms
2022-04-13T13:20:51.7672365Z INFO: Load active rules
2022-04-13T13:20:57.0791174Z INFO: Load active rules (done) | time=5314ms
2022-04-13T13:20:57.4973815Z INFO: Organization key: capsinc
2022-04-13T13:20:57.5248369Z INFO: Load project repositories
2022-04-13T13:20:57.8604272Z INFO: Load project repositories (done) | time=340ms
2022-04-13T13:20:57.9065118Z INFO: Indexing files...
2022-04-13T13:20:57.9067896Z INFO: Project configuration:
2022-04-13T13:20:57.9073973Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:58.8117085Z INFO: Indexing files of module 'CompositeHubCore'
2022-04-13T13:20:58.8634583Z INFO:   Base dir: D:\a\1\s\CompositeHubCore
2022-04-13T13:20:58.8942192Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:58.8996043Z INFO: Indexing files of module 'ReportingData'
2022-04-13T13:20:58.9024708Z INFO:   Base dir: D:\a\1\s\ReportingData
2022-04-13T13:20:58.9041868Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:58.9099550Z INFO: Indexing files of module 'Reporting'
2022-04-13T13:20:58.9512716Z INFO:   Base dir: D:\a\1\s\Reporting
2022-04-13T13:20:59.0395917Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:59.0589596Z INFO: Indexing files of module 'CapsCommon'
2022-04-13T13:20:59.0608311Z INFO:   Base dir: D:\a\1\s\CapsCommon
2022-04-13T13:20:59.0609532Z INFO:   Source paths: ApplicationSessions/RandomTokenGenerator.cs, Contants.cs, Enu...
2022-04-13T13:20:59.0611457Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:59.5887825Z INFO: Indexing files of module 'Reporting'
2022-04-13T13:20:59.6015641Z INFO:   Base dir: D:\a\1\s\Reporting
2022-04-13T13:20:59.6052636Z INFO:   Source paths: Attributes/ReportAttribute.cs, Attributes/ReportParameterAttr...
2022-04-13T13:20:59.6055491Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:59.6646826Z INFO: Indexing files of module 'Reporting'
2022-04-13T13:20:59.6648367Z INFO:   Base dir: D:\a\1\s\Reporting
2022-04-13T13:20:59.6649250Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:20:59.6650444Z INFO: Indexing files of module 'CompositeHubCore'
2022-04-13T13:20:59.6651353Z INFO:   Base dir: D:\a\1\s\CompositeHubCore
2022-04-13T13:20:59.6701983Z INFO:   Source paths: Authorization/ApplicationBuilderExtensions.cs, Authorization/...
2022-04-13T13:20:59.6704424Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6042901Z INFO: Indexing files of module 'ReportingData'
2022-04-13T13:21:00.6056508Z INFO:   Base dir: D:\a\1\s\ReportingData
2022-04-13T13:21:00.6065963Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6071188Z INFO: Indexing files of module 'ReportingData'
2022-04-13T13:21:00.6078524Z INFO:   Base dir: D:\a\1\s\ReportingData
2022-04-13T13:21:00.6082252Z INFO:   Source paths: AumData.cs, DispersionData.cs, GainLossData.cs, LookupHelpers...
2022-04-13T13:21:00.6083390Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6478041Z INFO: Indexing files of module 'ReportingData'
2022-04-13T13:21:00.6511279Z INFO:   Base dir: D:\a\1\s\ReportingData
2022-04-13T13:21:00.6513137Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6514533Z INFO: Indexing files of module 'CapsCommon'
2022-04-13T13:21:00.6515887Z INFO:   Base dir: D:\a\1\s\CapsCommon
2022-04-13T13:21:00.6517230Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6617111Z INFO: Indexing files of module 'CompositeHubCore'
2022-04-13T13:21:00.6618493Z INFO:   Base dir: D:\a\1\s
2022-04-13T13:21:00.6620209Z INFO:   Excluded sources: **/build-wrapper-dump.json
2022-04-13T13:21:00.6771620Z INFO: 867 files indexed
2022-04-13T13:21:00.6778301Z INFO: 0 files ignored because of inclusion/exclusion patterns
2022-04-13T13:21:09.2911087Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:09.2928926Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:09.2931567Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=14ms
2022-04-13T13:21:09.2934996Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:09.2943956Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:09.2948755Z INFO: Sensor CSS Rules [javascript] (done) | time=1ms
2022-04-13T13:21:09.2949416Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:09.3082412Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=13ms
2022-04-13T13:21:09.3088489Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:09.3099934Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:09.3612408Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:09.3634179Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=54ms
2022-04-13T13:21:09.3638932Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:09.3666195Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=3ms
2022-04-13T13:21:09.4092281Z INFO: ------------- Run sensors on module Reporting
2022-04-13T13:21:09.7564264Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:09.7566593Z INFO: Sensor C# Project Type Information [csharp] (done) | time=4ms
2022-04-13T13:21:09.7608563Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:09.7630848Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:09.7632454Z INFO: Language version: CSharp8
2022-04-13T13:21:09.7633274Z INFO: Concurrent execution: enabled
2022-04-13T13:21:09.7634156Z INFO: Sensor C# Analysis Log [csharp] (done) | time=3ms
2022-04-13T13:21:09.7635360Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:09.7645011Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-04-13T13:21:09.7651167Z INFO: Sensor Text Sensor [text]
2022-04-13T13:21:09.7699454Z INFO: 0 source files to be analyzed
2022-04-13T13:21:09.7705792Z INFO: 0/0 source files have been analyzed
2022-04-13T13:21:09.7706762Z INFO: Sensor Text Sensor [text] (done) | time=4ms
2022-04-13T13:21:09.7707714Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-04-13T13:21:09.7715092Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
2022-04-13T13:21:09.7902939Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-04-13T13:21:09.7905709Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=1ms
2022-04-13T13:21:09.7907152Z INFO: Sensor VB.NET Properties [vbnet]
2022-04-13T13:21:09.7908157Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-04-13T13:21:09.7909065Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-04-13T13:21:09.7910596Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:09.7912596Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:09.7913717Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2022-04-13T13:21:09.7914613Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:09.7915596Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:09.7916673Z INFO: Sensor CSS Rules [javascript] (done) | time=0ms
2022-04-13T13:21:09.7917611Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:09.7918639Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
2022-04-13T13:21:09.7919655Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:09.7920875Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:09.7921888Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:09.7922935Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2022-04-13T13:21:09.7924243Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:09.7925225Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
2022-04-13T13:21:09.7926200Z INFO: ------------- Run sensors on module CapsCommon
2022-04-13T13:21:10.0948525Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:10.0955552Z INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms
2022-04-13T13:21:10.0962252Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:10.0971909Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:10.0972979Z INFO: Language version: CSharp8
2022-04-13T13:21:10.0973593Z INFO: Concurrent execution: enabled
2022-04-13T13:21:10.0980265Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2022-04-13T13:21:10.0992711Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:10.0994253Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-04-13T13:21:10.0996673Z INFO: Sensor HTML [web]
2022-04-13T13:21:10.1059793Z INFO: Sensor HTML [web] (done) | time=7ms
2022-04-13T13:21:10.1087858Z INFO: Sensor Text Sensor [text]
2022-04-13T13:21:10.1098037Z INFO: 244 source files to be analyzed
2022-04-13T13:21:10.3990311Z INFO: 244/244 source files have been analyzed
2022-04-13T13:21:10.4020346Z INFO: Sensor Text Sensor [text] (done) | time=285ms
2022-04-13T13:21:10.4028595Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-04-13T13:21:10.4030066Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
2022-04-13T13:21:10.4031150Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-04-13T13:21:10.4073572Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
2022-04-13T13:21:10.4075602Z INFO: Sensor VB.NET Properties [vbnet]
2022-04-13T13:21:10.4079838Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-04-13T13:21:10.4081685Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-04-13T13:21:10.4083048Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:10.4115675Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:10.4143215Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2022-04-13T13:21:10.4144229Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:10.4147291Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:10.4148106Z INFO: Sensor CSS Rules [javascript] (done) | time=0ms
2022-04-13T13:21:10.4148756Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:10.4149418Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=0ms
2022-04-13T13:21:10.4150301Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:10.4150967Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:10.4151612Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:10.4152308Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=0ms
2022-04-13T13:21:10.4153704Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:10.4154468Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2022-04-13T13:21:10.4155160Z INFO: ------------- Run sensors on module ReportingData
2022-04-13T13:21:10.6906653Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:10.6934665Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2022-04-13T13:21:10.6937850Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:10.6950490Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:10.6952436Z INFO: Language version: CSharp8
2022-04-13T13:21:10.6953628Z INFO: Concurrent execution: enabled
2022-04-13T13:21:10.6978389Z INFO: Sensor C# Analysis Log [csharp] (done) | time=1ms
2022-04-13T13:21:10.6979832Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:10.6983908Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-04-13T13:21:10.7106463Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:10.7107613Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2022-04-13T13:21:10.7108537Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:10.7109558Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:10.7110600Z INFO: Sensor CSS Rules [javascript] (done) | time=0ms
2022-04-13T13:21:10.7112384Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:10.7113786Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms
2022-04-13T13:21:10.7115360Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:10.7116351Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:10.7117383Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:10.7118409Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=0ms
2022-04-13T13:21:10.7119393Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:10.7124331Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2022-04-13T13:21:10.7126547Z INFO: ------------- Run sensors on module Reporting
2022-04-13T13:21:11.1274456Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:11.1668604Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2022-04-13T13:21:11.1684806Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:11.2077996Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:11.2082528Z INFO: Language version: CSharp8
2022-04-13T13:21:11.2309642Z INFO: Concurrent execution: enabled
2022-04-13T13:21:11.2310864Z INFO: Sensor C# Analysis Log [csharp] (done) | time=10ms
2022-04-13T13:21:11.2311529Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:11.2312115Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-04-13T13:21:11.2312686Z INFO: Sensor HTML [web]
2022-04-13T13:21:11.2313237Z INFO: Sensor HTML [web] (done) | time=1ms
2022-04-13T13:21:11.2313775Z INFO: Sensor Text Sensor [text]
2022-04-13T13:21:11.2314555Z INFO: 36 source files to be analyzed
2022-04-13T13:21:11.2315141Z INFO: 36/36 source files have been analyzed
2022-04-13T13:21:11.2315717Z INFO: Sensor Text Sensor [text] (done) | time=83ms
2022-04-13T13:21:11.2316331Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-04-13T13:21:11.2316978Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
2022-04-13T13:21:11.2317582Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-04-13T13:21:11.2318193Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
2022-04-13T13:21:11.2318787Z INFO: Sensor VB.NET Properties [vbnet]
2022-04-13T13:21:11.2319365Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-04-13T13:21:11.2320256Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-04-13T13:21:11.2321116Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:11.2322030Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:11.2322741Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2022-04-13T13:21:11.2323345Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:11.2323971Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:11.2324643Z INFO: Sensor CSS Rules [javascript] (done) | time=1ms
2022-04-13T13:21:11.2325309Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:11.3331704Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=115ms
2022-04-13T13:21:11.3337532Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:11.3484227Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:11.3485029Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:11.3485793Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2022-04-13T13:21:11.3486547Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:11.3487234Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2022-04-13T13:21:11.3487969Z INFO: ------------- Run sensors on module ReportingData
2022-04-13T13:21:11.6823535Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:11.6825060Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2022-04-13T13:21:11.6826325Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:11.6828771Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:11.6829774Z INFO: Language version: CSharp8
2022-04-13T13:21:11.6834699Z INFO: Concurrent execution: enabled
2022-04-13T13:21:11.6836113Z INFO: Sensor C# Analysis Log [csharp] (done) | time=8ms
2022-04-13T13:21:11.6840215Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:11.6843454Z INFO: Sensor C# Properties [csharp] (done) | time=0ms
2022-04-13T13:21:11.6844725Z INFO: Sensor Text Sensor [text]
2022-04-13T13:21:11.6863469Z INFO: 0 source files to be analyzed
2022-04-13T13:21:11.6871282Z INFO: 0/0 source files have been analyzed
2022-04-13T13:21:11.6872254Z INFO: Sensor Text Sensor [text] (done) | time=1ms
2022-04-13T13:21:11.6873164Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-04-13T13:21:11.6893041Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=0ms
2022-04-13T13:21:11.6894045Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-04-13T13:21:11.6894919Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
2022-04-13T13:21:11.6895785Z INFO: Sensor VB.NET Properties [vbnet]
2022-04-13T13:21:11.6897845Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-04-13T13:21:11.6899034Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-04-13T13:21:11.6901205Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:11.6953503Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:11.6968245Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
2022-04-13T13:21:11.6974633Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:11.6975617Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:11.6979445Z INFO: Sensor CSS Rules [javascript] (done) | time=1ms
2022-04-13T13:21:11.6981718Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:11.6982865Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=7ms
2022-04-13T13:21:11.6984167Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:11.6985108Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:11.6985960Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:11.6986818Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2022-04-13T13:21:11.6987985Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:11.6988874Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=1ms
2022-04-13T13:21:11.6989811Z INFO: ------------- Run sensors on module CapsCommon
2022-04-13T13:21:12.0135890Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:12.0141063Z INFO: Sensor C# Project Type Information [csharp] (done) | time=1ms
2022-04-13T13:21:12.0143852Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:12.0144924Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:12.0201350Z INFO: Language version: CSharp8
2022-04-13T13:21:12.0211549Z INFO: Concurrent execution: enabled
2022-04-13T13:21:12.0212977Z INFO: Sensor C# Analysis Log [csharp] (done) | time=2ms
2022-04-13T13:21:12.0632095Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:12.0814163Z INFO: Sensor C# Properties [csharp] (done) | time=1ms
2022-04-13T13:21:12.1014042Z INFO: Sensor Text Sensor [text]
2022-04-13T13:21:12.1103677Z INFO: 0 source files to be analyzed
2022-04-13T13:21:12.1107034Z INFO: 0/0 source files have been analyzed
2022-04-13T13:21:12.1108198Z INFO: Sensor Text Sensor [text] (done) | time=3ms
2022-04-13T13:21:12.1109046Z INFO: Sensor VB.NET Project Type Information [vbnet]
2022-04-13T13:21:12.1110135Z INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
2022-04-13T13:21:12.1112582Z INFO: Sensor VB.NET Analysis Log [vbnet]
2022-04-13T13:21:12.1113563Z INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=0ms
2022-04-13T13:21:12.1114526Z INFO: Sensor VB.NET Properties [vbnet]
2022-04-13T13:21:12.1115455Z INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
2022-04-13T13:21:12.1116434Z INFO: Sensor JaCoCo XML Report Importer [jacoco]
2022-04-13T13:21:12.1459456Z INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
2022-04-13T13:21:12.1461556Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:12.1463695Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms
2022-04-13T13:21:12.1464631Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:12.1465622Z INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
2022-04-13T13:21:12.1466680Z INFO: Sensor CSS Rules [javascript] (done) | time=1ms
2022-04-13T13:21:12.1467614Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:12.1468660Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms
2022-04-13T13:21:12.1469704Z INFO: Sensor Serverless configuration file sensor [security]
2022-04-13T13:21:12.1470853Z INFO: 0 Serverless function entries were found in the project
2022-04-13T13:21:12.1471842Z INFO: 0 Serverless function handlers were kept as entrypoints
2022-04-13T13:21:12.1472883Z INFO: Sensor Serverless configuration file sensor [security] (done) | time=1ms
2022-04-13T13:21:12.1473900Z INFO: Sensor AWS SAM template file sensor [security]
2022-04-13T13:21:12.1474942Z INFO: Sensor AWS SAM template file sensor [security] (done) | time=0ms
2022-04-13T13:21:12.1475983Z INFO: ------------- Run sensors on module CompositeHubCore
2022-04-13T13:21:12.6789193Z INFO: Sensor IaC CloudFormation Sensor [iac]
2022-04-13T13:21:12.7024092Z INFO: 0 source files to be analyzed
2022-04-13T13:21:12.7238633Z INFO: 0/0 source files have been analyzed
2022-04-13T13:21:12.7243529Z INFO: Sensor IaC CloudFormation Sensor [iac] (done) | time=44ms
2022-04-13T13:21:12.7263633Z INFO: Sensor C# Project Type Information [csharp]
2022-04-13T13:21:12.7306330Z INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
2022-04-13T13:21:12.7309060Z INFO: Sensor C# Analysis Log [csharp]
2022-04-13T13:21:12.7309883Z INFO: Roslyn version: 3.11.0.0
2022-04-13T13:21:12.7310403Z INFO: Language version: CSharp8
2022-04-13T13:21:12.7310886Z INFO: Concurrent execution: enabled
2022-04-13T13:21:12.7311435Z INFO: Sensor C# Analysis Log [csharp] (done) | time=0ms
2022-04-13T13:21:12.7311997Z INFO: Sensor C# Properties [csharp]
2022-04-13T13:21:12.7312560Z INFO: Sensor C# Properties [csharp] (done) | time=7ms
2022-04-13T13:21:12.7313107Z INFO: Sensor HTML [web]
2022-04-13T13:21:13.3048822Z INFO: Sensor HTML [web] (done) | time=574ms
2022-04-13T13:21:14.1163484Z INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
2022-04-13T13:21:14.1164628Z INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=4ms
2022-04-13T13:21:14.1165908Z INFO: Sensor JavaScript analysis [javascript]
2022-04-13T13:21:28.8599328Z INFO: Deploying custom rules bundle jar:file:/C:/Users/VssAdministrator/.sonar/cache/407d827e66c5794ecc2c8947635359f7/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to D:\a\1\.sonarqube\out\.sonar\.sonartmp\eslint-bridge-bundle\package\custom-rules2423213999681100196
2022-04-13T13:21:33.6972886Z WARN: Using Node.js version 12 to execute analysis is deprecated and will stop being supported no earlier than August 1st, 2022. Please upgrade to a newer LTS version of Node.js [14, 16]
2022-04-13T13:21:33.7806759Z INFO: 6 source files to be analyzed
2022-04-13T13:21:43.7589711Z INFO: 2/6 files analyzed, current file: D:/a/1/s/CompositeHubCore/wwwroot/Scripts/sortable.core.esm.js
2022-04-13T13:21:47.3495925Z ##[error]ERROR: Failed to parse file [CompositeHubCore/wwwroot/Scripts/notes-for-build.js] at line 8: Unexpected token (8:9)
2022-04-13T13:21:47.3550213Z ERROR: Failed to parse file [CompositeHubCore/wwwroot/Scripts/notes-for-build.js] at line 8: Unexpected token (8:9)
2022-04-13T13:21:47.9181623Z INFO: 6/6 source files have been analyzed
2022-04-13T13:21:47.9304728Z INFO: Sensor JavaScript analysis [javascript] (done) | time=33798ms
2022-04-13T13:21:47.9308755Z INFO: Sensor TypeScript analysis [javascript]
2022-04-13T13:21:48.0290572Z INFO: Found 0 tsconfig.json file(s): []
2022-04-13T13:21:48.0291374Z INFO: No tsconfig.json file found
2022-04-13T13:21:48.0388348Z INFO: 372 source files to be analyzed
2022-04-13T13:21:48.0389117Z INFO: Skipped 372 file(s) because they were not part of any tsconfig (enable debug logs to see the full list)
2022-04-13T13:21:48.0414545Z INFO: 372/372 source files have been analyzed
2022-04-13T13:21:48.0416128Z INFO: Sensor TypeScript analysis [javascript] (done) | time=128ms
2022-04-13T13:21:48.0420755Z INFO: Sensor CSS Metrics [javascript]
2022-04-13T13:21:48.0939200Z INFO: Sensor CSS Metrics [javascript] (done) | time=37ms
2022-04-13T13:21:48.0956856Z INFO: Sensor CSS Rules [javascript]
2022-04-13T13:21:48.1303141Z INFO: 16 source files to be analyzed
2022-04-13T13:21:48.8970487Z INFO: 16/16 source files have been analyzed
2022-04-13T13:21:48.8972078Z INFO: Sensor CSS Rules [javascript] (done) | time=817ms
2022-04-13T13:21:48.8972658Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend]
2022-04-13T13:21:48.9041132Z INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=2ms
sor [security] (done) | time=0ms

Hi,

Welcome to the community!

Sorry to be dense, but you’ve listed the languages of the repository as C# (right?). So… were you expecting TypeScript files to be analyzed?

 
Ann

Its a .netcore v3.1 web app with C#, JavaScript, TypeScript, HTML. The tsconfig.json file is at the root right next to package.json just like in any normal web app.


Hello @caseycole589 and welcome to the community!

We’ll need the logs:

  • please give us the verbose output of the scanner commands (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the begin step, and please attach the output of the BEGIN and END steps)

Also, please tell us:

  • what are the commands you are running to do the analysis?
  • are you running all commands from the same folder?

All the best,
Čaba

We are just running the default Azure DevOps task you provide. Can you tell me how to run the command
SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true using it?

@caseycole589 apologies for the delay.

If you are using the visual designer, add the setting in the Additional properties section:

If you’re using yaml, add it to the extraProperties:

- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
  inputs:
    ...
    extraProperties: |
     # Additional properties that will be passed to the scanner, 
     # Put one key=value per line, example:
     # sonar.exclusions=**/*.bin
     #sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/**/*.trx