TypeScript sensor which is trying to read tsconfig.json even when it has found none

  • ALM used: Azure DevOps
  • CI system used : Azure DevOps
  • Scanner command used: standard azure pipeline
  • Languages of the repository : javascript
  • Error observed:
INFO: Found 0 tsconfig.json file(s): []
##[error]ERROR: The 'files' list in config file 'tsconfig.json' is empty

The azure pipelines started failing yesterday, it seems like an issue in TypeScript sensor which is trying to read tsconfig.json even when it has found none.

Hello,

Thanks for reporting this problem. Ticket is created TypeScript sensor should not create default tsconfig if no input files are found · Issue #2617 · SonarSource/SonarJS · GitHub.

Note that this problem is not affecting analysis results other than printing this error log.

hello @Imran_Rais ,

we are working on a fix for this issue. As a workaround you can create dummy TypeScript file in your project, which will stop analyzer to print this error message and Azure will not fail the build.