Preface:
Recently used in the project Sonarlint, the first contact with the software, it feels really good, some code problems can be detected using Sonarlint, a software use, are from a step-by-step learning to start, this blog to summarize the Sonarlint installation and basic use.
Core: What :
Sonarlint, essentially, is a plugin that we can download in Idea,eclipse, Visual Studio for code detection.
Idea Installation:
Premise: The Sonarqube has been built.
Then install the plugin.
File-->settings-->plugins->browserespositories, search Sonar, select Sonarlint in the search list to install, restart idea as prompted. As shown in the figure:
Configuring Sonarqube Server
Click File-->settings-->othersettings-->sonarlint General Settings, enter
Name: You can name it yourself.
Server URL: Servers name.
Authentication type: Server link password.
Login: User Name
Password: Password
Offline Installation:
Offline installation, enter Sonarlint official website, click to download. Recommended Installation Reference Blog: Click the Open link.
Icons:
Installation Success Screenshot:
Sonarlint particularly good is that when clicking the wrong time, you can click in the wrong code, you can see the source of the error, and the right side there will be a correction error and the correct example, you can refer to the example to modify.
Summary:
For the use of a new tool, all from the initial use of the beginning, and slowly will become our learning and tools a good helper. Constant proficiency and the ability to get started.