简体   繁体   English

Eclipse中的SonarLint插件未显示错误Javadoc

[英]SonarLint plugin in Eclipse not display Error Javadoc

I'm trying to create method without add comment or documentation it, I expected SonarLint would show errors based on rules, but I don't see any errors or warnings. 我正在尝试创建不添加任何注释或文档的方法,我希望SonarLint会根据规则显示错误,但是我看不到任何错误或警告。 Why? 为什么?

在此处输入图片说明

The particular rules you're looking for are "common" rules applied at the server. 您要查找的特定规则是在服务器上应用的“通用”规则。 You're not going to see them in SonarLint. 您不会在SonarLint中看到它们。 But in general: 但一般来说:

Out of the box, SonarLint runs with the Sonar way (default) profile. 开箱即用,SonarLint使用Sonar方式(默认)配置文件运行。 If you want additional rules applied in the IDE, you'll need to: 如果要在IDE中应用其他规则,则需要:

  • set up a SonarQube instance (assuming you don't already have one) 设置SonarQube实例(假设您还没有实例)
  • configure a Quality Profile to your liking 根据您的喜好配置质量配置文件
  • apply it to your project 将其应用于您的项目
  • connect your project in the IDE to the project on the server IDE中的项目连接到服务器上的项目

At this point you will see (almost) all the same issues in both places. 此时,您将在两个地方(几乎)看到所有相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM