sonarLint 插件配置sonarQube Server

Connected Mode

You can bind Eclipse projects to a SonarQube project (supporting SonarQube servers 5.6+). This operation will make SonarLint use the analyzers, quality profiles and settings defined on your SonarQube server. This is a convenient way of customizing the rules used by SonarLint.

First step is to connect to your SonarQube server:

  • In SonarQube server view, right click and choose "New -> Server connection", or directly do "File -> New -> Other... -> SonarLint -> New Server".
  • Complete connection details (URL and credentials).
  • Test connection
  • Click "Finish" to close the wizard and start updating configuration from the server (may take a while)

You can manage your SonarQube server connections in the "SonarQube Servers" view. To manually trigger an update of local configuration (if remote SonarQube configuration has changed): right click on a server and use the "update" action.

备注:要注意上面的协议是https,如果不支持https协议的需要修改成http,连接本地的截图如下:

Now you can bind one or more Eclipse project(s) to their remote SonarQube pair. Right click on project -> "SonarLint -> Bind with remote SonarQube server..."

You can now use the wizard to find the matching SonarQube project. First try the "auto-bind" feature that will try to find best match based on Eclipse project name. If auto-bind fail you can manually search for a project.

Click on "Finish" to persist the binding. You should now show SonarQube overlay on your bound project icon.

That‘s it, you can now code and see SonarLint reporting issues based on remote SonarQube configuration.

时间: 2024-08-07 08:37:57

sonarLint 插件配置sonarQube Server的相关文章

jetty热部署,持久化session,jetty-maven插件配置

持久化session 背景 使用maven管理项目,使用jetty插件启动项目,虽然jetty是热部署的,但是没有配置的jetty并不算真正的热部署.因为在没有配置前每次热部署都会把session丢了.导致测试期间的数据丢失,重来一遍很麻烦. 本人使用的是jetty-maven-plugin,关于这个插件的一些基本配置就不说了,网上很多. 配置代码pom <plugin> <groupId>org.mortbay.jetty</groupId> <artifact

maven常用插件配置详解

常用插件配置详解Java代码    <!-- 全局属性配置 --> <properties> <project.build.name>tools</project.build.name> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> project.build.name:  用来定义war包名称  proje

Eclipse下JRebel插件配置

因为我安装的JRebel插件版本为6.0.3.下面我就以JRebel6.0.3版本的插件为例进行讲述.Eclipse中的JRebel插件配置要注意三点 1. 勾选要使用的应用服务器 因为我使用的是tomcat,所以我要在JRebel Config Center下的Overview页签中的JRebel Enabled/Server中勾选 Tomcat Vx.xx Server at localhost. 2. 勾选开发中的项目 在JRebel Config Center下的Overview页签中的

CentOS6.8配置SonarQube Scanner配合SonarQube使用

下载最新的SonarQube Scanner压缩包 https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner 1 解压缩到CentOs目录下 我的是 /usr/local/software/sonar-scanner-3.0.3.778-linux 2 <install_directory>/conf/sonar-scanner.properties:  修改对应配置文件 根据具体的你的URL 如果配置了s

Android Studio 中Gradle配置sonarqube

Sonarqube作为一个很实用的静态代码分析工具,在很多项目中都使用.Android自然也不例外.这里就分享下使用Android Studio时如何在Gradle里配置Sonarqube. 以下分别就使用公共maven仓库和私有maven仓库两种情况来简单说明下: 一,使用公共Maven仓库: 这个比较简单. 打开gradle sonarqube插件官方网址:https://plugins.gradle.org/plugin/org.sonarqube 可以看到有两种方式集成sonarqube

Maven tomcat插件配置及使用

pom.xml配置 <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.1</version> <configuration> <path>/cxx</path> <por

配置 Eureka Server 集群

简介 为了使 Eureka Server 实现高可用,我们需要为它配置集群.这样当有一台 Eureka Server 有故障时,集群中的其他 Server 可以进行代替.Eureka 集群之中的 Node 通过 P2P 通信的方式共享注册表,以使得每个 Eureka Server 的注册表保持一致.本教程将在本地开启两台 Eureka Server 以测试集群的搭建. 项目源码 Gitee码云 配置 Eureka Server 打开远程 git 仓库中的 eureka-server.yml 文件

(7/24) 插件配置之html文件的打包发布

从前面几节到现在,其实我们的项目结构是有问题的,因为我们直接把index.html文件放到了dist文件夹目录下.这肯定是不正确的,应该放到我们src目录下,然后打包到dist目录下,前面为了学习,才把index.html放到了dist目录下. 此节我们就来完成把开发环境中的html文件打包到我们的生产路径下. 1.打包HTML文件 在开始下面内容之前,我们先改造一下之前的项目结构,先把dist中的index.html文件剪切到src目录中,并去掉我们引入的js代码(webpack会自动为我们引

SonarLint插件安装

本次主要介绍SonarLint插件的安装,目前开发环境为IDEA,因此以IDEA为例. 第一步:打开IDEA - Configure - Plugins. 第二部:在Marketplace中搜索sonarlint,之后点击Insrall. 第三步:设置sonatlint,点击Configure - Settings 可以将sonarlint设置为自动分析,写代码时会实时分析代码,电脑配置低的不推荐开启. 第四步:分析代码(开启自动分析的朋友可以略过不看) 右键点击需要分析的文件,点击Analyz