Static code analysis with sonarqube for angular 8 application in AWS codebuild

I am having AWS codebuild for angular 8 application. I have sonarqube 7.0.0 installed on the ec instance. I am not able to find a way to do the static code analysis and send the report to sonarqube server insatalled in remote machine.
I am able to generate security token and host of sonarqube sever.

Please help me to find a way to do the static code analysis and send the report to sonarqube server insatalled in remote machine

Thanks,
Ranjit Kumar

Hi Ranjit,

You’ll need to use a Scanner to perform an analysis. Here are the docs to get started with: https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/

 
Ann

Hi,

Your analysis log says you’t don’t have any language analyzers installed. When you go to Administration->Marketplace and click on Installed, what do you see?

 
Ann

I can see sonar ts is installed:
SonarTS Languages

Code Analyzer for TypeScript * 1.5 (build 2122) installed

  • Updates:
    • 2.1 (build 4359)

TypeScript analysis now provided by the JavaScript code analyzer * * Homepage

Hi,

It’s difficult for me to understand what’s happening here.

At the same time, your log indicates you’re running SonarQube 7.0, which is past EOL. I think the best course here is to upgrade to 8.1 and try again.

 
Ann

This is resolved after the change in sonarqube properties file.