简体   繁体   中英

SonarQube / AngularJS - How to I get SonarQube up and running to get my Angular project integrated / analyzed?

I have a front end project (AngularJS - not latest version) and want to analyze the code with SonarQube.

Here is what I did so far.

1) Grabbed my project from GitHub and cloned to desktop.

2) Downloaded SonarQube-6.5 and extracted to desktop.

3) Opened sonarqube-6.5\extensions\plugins (in my extracted directory) and pasted a front end plugin (downloaded from https://github.com/groupe-sii/sonar-web-frontend-plugin )

4) Created sonar-project.properties in my web directory of my project

Contents

# Required metadata
sonar.projectKey=project-name
sonar.projectName=project name
sonar.projectVersion=0.1

# Comma-separated paths to directories with sources (required)
sonar.sources=src/app

# exclude some files and folders (typically dependencies)
sonar.exclusions=bower_components/**/*, node_modules/**/*

# Encoding of the source files
sonar.sourceEncoding=UTF-8

Then I ran the following in command line.

cd project root dir

"c:\\sonar-scanner-msbuild-3.0.2.656\SonarQube.Scanner.MSBuild.exe" begin /k:"orag.sonarqube:sonarqube-scanner-msbuild" /n:"CMNHMobile-nextrelease" /v:"1.0" c:\pathto ms build\MSBuild.exe /t:Rebuild "c:\sonar-scanner-msbuild-3.0.2.656\SonarQube.Scanner.MSBuild.exe" end

After these steps I do not see any project listed in my localhost:9000 (SonarQube)

What can I do to show the project for analysis?

This is SonarJS project github home where you can get the latest updates: https://github.com/SonarSource/SonarJS

使用以下插件(SonarJS)有助于解决我的困惑并开始分析-docs.sonarqube.org/display/PLUG/SonarJS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM