Sonarlint和IntelliJ:仅对更改列表中的文件运行分析,是否可能?

huangapple go评论60阅读模式
英文:

Sonarlint and Intelij: possible to run analysis only for files in a changelist?

问题

我目前正在本地运行Intelij中的sonarlint插件,效果很好。

我想仅针对我在我的变更列表中拥有的文件运行该插件 - 在我推送它们并创建拉取请求之前。

有办法做到这一点吗?

英文:

I am currently running sonarlint plugin locally in Intelij which works well.

I would like to run the plugin only for files that I have in my Changelist - before I push them and create a Pull request.

Is there a way to do this?

答案1

得分: 2

选择 Git 窗口中的变更列表。然后点击 ctrl-shift-S。

英文:

Select the changelist in the Git window. Then click ctrl-shift-S

答案2

得分: 1

可以的,你可以这样做:

选择"分析列表",然后选择"使用SonarLint分析VCS更改的文件"。

英文:

Yes you can do this

Select Analyze list and then choose Analyze VCS changed files with SonarLint

Sonarlint和IntelliJ:仅对更改列表中的文件运行分析,是否可能?

huangapple
  • 本文由 发表于 2020年7月30日 21:07:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/63173852.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定