[英]When using SonarLint in VSCode, how do you generate a report of local project violations?
I just installed the SonarLint extension for VSCode (Windows 10).我刚刚为 VSCode (Windows 10) 安装了 SonarLint 扩展。 When using my Java/Maven project, how do I generate a report of all violations in my project?
使用我的 Java/Maven 项目时,如何生成项目中所有违规行为的报告? When I expand the "Sonar Lint Iusse List" on the left, there are no issues reported (even though I know, using Eclipse, that there are many SonarLint issues), only this
当我展开左侧的“Sonar Lint Iusse List”时,没有报告任何问题(即使我知道,使用 Eclipse,有很多 SonarLint 问题),只有这个
but I'm unclear what "Show All Locations Code Action" means.但我不清楚“显示所有位置代码操作”是什么意思。
Code Action
代码动作
Warnings and Errors can provide Code Actions (also known as Quick Fixes) to help fix issues.
警告和错误可以提供代码操作(也称为快速修复)来帮助解决问题。 These will be displayed in the editor in the left margin as a lightbulb.
这些将作为灯泡显示在编辑器的左边距中。 Clicking on the lightbulb will either display the Code Action options or perform the action.
单击灯泡将显示代码操作选项或执行操作。
On your code editing page, find where there are errors or warnings, and click the yellow light bulb to expand the Code Action menu.在您的代码编辑页面上,找到有错误或警告的地方,然后单击黄色灯泡以展开“代码操作”菜单。
Open this menu in a place where SonarLint issue exists, there should be Show all locations
option, just click it.在存在SonarLint 问题的地方打开此菜单,应该有
Show all locations
选项,只需单击它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.