JavaScript/TypeScript/CSS rules were not executed. Only Node.js v14.17 or later is supported, got 12.22.1.
I have set up SonarQube on my server and docker but whenever I execute my new code it gets passed and shows this warning
Version not provided:- This is also written next to it.
JavaScript/TypeScript/CSS rules were not executed. Only Node.js v14.17 or later is supported, got 12
Hi,
Welcome to the community!
The warning is pretty clear:
You need to install a recent version of Node.js on the build agent.
Regarding the “Version not provided”, I really appreciate your providing the screenshot. I’d probably have been stumped without it. What that is telling you is that you didn’t provide the sonar.projectVersion
analysis parameter. The idea behind this parameter is to provide the number of the version you’re currently working on. The main use case is to be able to use “previous version” as your New Code definition. That way you can easily track the changes since your last release.
HTH,
Ann