Thanks, I have closed the command window and opened the same.
Now when i run command sonar-scanner.bat -h and sonar-scanner its giving the below output.
And I have added sonar-project.properties file in the root directory of angular project with the below code.
- Please let me know the sonar.projectKey is nothing but that we need to create a new project in sonarqube and generate a token and the same will be added here? and other added properties are correct?
# must be unique in a given SonarQube instance
# --- optional properties ---
# defaults to project key
sonar.projectName=Sample Anuglar Project
# defaults to 'not provided'
# Path is relative to the sonar-project.properties file. Defaults to .
# Encoding of the source code. Default is default system encoding
And below command lines are there in the sonar-scanner.properties file sonarscanner directory/conf/sonar-scanner.properties.
#Configure here general information about the environment, such as SonarQube server connection details for example
#No information about specific project should appear here
#----- Default SonarQube server
#----- Default source code encoding
How the angular code will do code analysis?