angular - SonarQube/AngularJS - 如何启动并运行 SonarQube 以集成/分析我的 Angular 项目?

标签 angular sonarqube

我有一个前端项目(AngularJS - 不是最新版本),想用 SonarQube 分析代码。

这是我到目前为止所做的。

1) 从 GitHub 抓取我的项目并克隆到桌面。

2) 下载 SonarQube-6.5 并解压到桌面。

3) 打开sonarqube-6.5\extensions\plugins(在我解压出来的目录下)粘贴一个前端插件(从https://github.com/groupe-sii/sonar-web-frontend-plugin下载)

4) 在我项目的 web 目录中创建了 sonar-project.properties

内容

# 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

然后我在命令行中运行了以下命令。

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

完成这些步骤后,我在 localhost:9000 (SonarQube) 中看不到任何项目

我可以做些什么来展示项目以供分析?

最佳答案

这是 SonarJS 项目的 github 主页,您可以在其中获取最新更新:https://github.com/SonarSource/SonarJS

关于angular - SonarQube/AngularJS - 如何启动并运行 SonarQube 以集成/分析我的 Angular 项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45761892/

相关文章:

angular - PrimeNG DataTable 过滤 filterMatchType 不是默认值

javascript - 在 Angular/客户端项目中使用转换为 JavaScript 的 Kotlin 代码

python - Sonarqube 客户端无法解析 pytest 覆盖率结果

maven - 在当前项目和插件组中找不到前缀 'sonar' 的插件错误

java - mvn Sonar :sonar running Error: cannot be cast to org. sonar.java.resolve.JavaSymbol$TypeJavaSymbol

angular - 类型 'Observable<DocumentData[]>' 不可分配

angular - Azure Web App wwwroot 在发布时重复

windows - Sonar : The 'report' parameter is missing

ios - 如何解决可选协议(protocol)方法中的 SonarQube 未使用参数规则?

intellij-idea - 如何使用 WebStorm 调试 Webpack-dev-server(在内存中)?