对Eclipse Remote Systems Explorer禁用Sonarlint自动扫描 [英] Disable Sonarlint automatic scan for Eclipse Remote Systems Explorer

查看:755
本文介绍了对Eclipse Remote Systems Explorer禁用Sonarlint自动扫描的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse中为Remote Systems Explorer插件禁用SonarLint自动扫描?

How can I disable the SonarLint automatic scan in Eclipse for the Remote Systems Explorer plugin?

背景:

我最近为Eclipse安装了SonarLint插件,因为我工作的客户端使用Sonar来提高代码质量。并且喜欢直接报告错误和代码气味。

I recently installed the SonarLint plugin for Eclipse, because a client I work for uses Sonar for code quality. And love the direct reporting of bugs and code smells.

现在,我尝试为另一个不使用Sonar且有旧项目的客户做一些工作。我已通过SFTP连接到该服务器,因此我使用了远程系统资源管理器。但是,当我打开任何文件时,到处都可以看到通知。

Now I try to do some work for another client, which doesn't use Sonar, and has a old legacy project. Which I have connect to via SFTP so I use the Remote Systems Explorer for that. But when I open any file I can see notices all over the place.

为了保持整洁和分离,我为每个客户端设置了不同的工作区。

To keep every clean and separated I have setup different workspaces for each client.

我尝试过的事情:

有项目设置,有一个开关可以禁用自动扫描,但是远程系统资源管理器无法访问这些设置。

There is the project settings there is a switch to disable the automatic scan, however those settings are not accessible for the Remote Systems Explorer.

在全局设置中似乎也没有自动扫描开关。

Also that switch for automatic scan does not seem to be available in the global settings.

我尝试了以下全局SonarLint->分析器属性,如从SonarLint中排除JS文件所述:

Next to that I tried the following globally SonarLint -> Analyzer Properties as stated in Exclude JS files from SonarLint:

sonar.exclusions=**/*.php
sonar.test.exclusions=**/*.php

这不起作用,但这可能是由于以下事实导致的:该位置。至少在以下内容中有说明:
https ://groups.google.com/forum/#!msg / sonarlint / aBxnpn-yLbg / KL9nOiFQBAAJ

That did not work, but that could be due to the fact that those settings are not possible in that location. At least that is what is stated in: https://groups.google.com/forum/#!msg/sonarlint/aBxnpn-yLbg/KL9nOiFQBAAJ

SonarLint插件似乎也没有显示在常规->启动和关闭全局设置中,因此我无法在特定的工作空间中禁用它。

The SonarLint plugin also does not seem to show in the General -> Startup and Shutdown global settings, so I cannot disable it for a specific workspace.

推荐答案

好吧,我似乎

事实证明,排除参数确实有效,但是,如果SonarLint已经进行了分析,则将结果缓存在某个地方。
打开已扫描的文件时,它会显示以前分析的结果。要删除它,只需在Sonarlint窗口中选择全部,右键单击并选择删除选项。

As it turns out the exclusions parameters did work, however if SonarLint already has made it's analyses it caches the results somewhere. When opening an already scanned file it shows the results from the previous analyses. To remove that just select all in the Sonarlint window, right mouse click and choose the delete option.

编辑

另外,好像您用打开的文件关闭Eclipse,然后再次启动Eclipse一样,Sonarlint会自动检查那些打开的文件,而不管排除在何处。

One addition, it seems like if you close Eclipse with open files, and startup Eclipse again, the Sonarlint will automatic check those open files regardless of the exclusions.

这篇关于对Eclipse Remote Systems Explorer禁用Sonarlint自动扫描的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆