2

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. Why?

enter image description here

janos
  • 120,954
  • 29
  • 226
  • 236

1 Answers1

3

The particular rules you're looking for are "common" rules applied at the server. You're not going to see them in SonarLint. But in general:

Out of the box, SonarLint runs with the Sonar way (default) profile. If you want additional rules applied in the IDE, you'll need to:

  • set up a SonarQube instance (assuming you don't already have one)
  • configure a Quality Profile to your liking
  • apply it to your project
  • connect your project in the IDE to the project on the server

At this point you will see (almost) all the same issues in both places.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76