ALM used Azure DevOps
CI system used Azure DevOps
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
Azure DevOps CI pipeline build gates failing with the error “ERROR: The ‘files’ list in config file ‘tsconfig.json’ is empty.” And when looked in the sonar cloud see the master branch shows a major/minor code smell on the file that was never changed since the year 2020.
Our teams are currently reviewing this issue. This should not fail the build, but Azure DevOps has a system that leverage this as an error.
We’ll keep you posted.
hello @bharatpidapa ,
we identified the problem and we are working on the fix. Issue is described here TypeScript sensor should not create default tsconfig if no input files are found · Issue #2617 · SonarSource/SonarJS · GitHub .
As a workaround you can create dummy TypeScript file in your project, for example
file.ts, this will avoid the analyzer to print the error message.
Would you mind sharing which rule the code smell is actually referring to ?
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.