当前位置: 首页 > 知识库问答 >
问题:

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

冷正青
2023-03-14

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

以下是我到目前为止所做的。

2)下载SonarQube-6.5并提取到桌面。

3)打开sonarqube-6.5\extensions\plugins(在我提取的目录中)并粘贴一个前端插件(从https://github.com/groupe-sii/sonar-web-fronten-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

“C:\\sonar-scanner-msbuild-3.0.2.656\sonarqube.scanner.msbuild.exe”开始/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”结束

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

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

共有1个答案

梁泰
2023-03-14

这是SonarJS project GitHob主页,您可以在此获得最新更新:https://github.com/sonarsource/SonarJS

 类似资料:
  • 我已在Jenkins中安装了Sonarqube插件,并在Manage Jenkins中为SonarQube和sonar运行器完成了配置-

  • 问题:如何让SonarQube从代码分析结果生成报告?

  • 我真的有一个“溢出”试图让这些东西一起工作。我按照这里的说明:http://docs.sonarqube.org/display/PLUG/AndroidLint插件,最后安装了一个安装了Android Lint插件1.1的SonarQube 5.1.1服务器。然后我将我的多模块Gradle构建配置为与SonarQube插件一起使用:请参阅下面根配置中的代码片段。 然后我运行了lint sonar

  • 尝试为Angular 7代码库设置Sonarqube以进行代码覆盖率分析。我已经安装了Sonarqube并在Admin中创建了一个项目,获得了授权cmd “sonar-scanner.bat-d”sonar.projectkey=testapp“-d”sonar.sources=.“-d”sonar.host.url=http://127.0.0.1:9000“-d”sonar.login=508

  • sonar.projectkey=projkey sonar.projectname=projname Sonar.ProjectVersion=1.0 sonar.sources={path} sonar.java.binaries={path} Sonar.ProjectBaseDir={path}

  • 我已经创建了一个项目并运行代码分析。后来,我对规则做了一些修改,并尝试再次运行代码分析。但是在http://localhost:9000/projects的UI中,我找不到任何菜单或按钮来显示运行代码分析的说明。有人能帮忙吗? 25/02/2020更新