]The analysis did not pass the quality gate because because at least one analysis has has the status 'ERROR'. Attempting to fail the build!

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.

Hi @bharatpidapa

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.

Hello @bharatpidapa,

Would you mind sharing which rule the code smell is actually referring to ?


Hi ¿this had a solution?

Yes. The fix was merged and deployed as you can see if you follow the link given by @saberduck (TypeScript sensor should skip analysis if no input files are found · Issue #2617 · SonarSource/SonarJS · GitHub)

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