Skip to content

Using SonarLint Fixing issues

kevin-hinz edited this page Nov 2, 2022 · 2 revisions

Page Item: Fixing Issues

SLUG: using-sonarlint-fixing-issues

HEADING 1

Lorum ipsum

QUICKFIX IS AN EXAMPLE FEATURE

tabbed

Eclipse

PLACE ECLIPSE CONTENT HERE TO ENTERED INTO THE KONTENT.AI-SPECIFIC ASSET

tabbed

IntelliJ

PLACE INTELLIJ CONTENT HERE TO ENTERED INTO THE KONTENT.AI-SPECIFIC ASSET

tabbed

Visual Studio

PLACE VISUAL STUDIO CONTENT HERE TO ENTERED INTO THE KONTENT.AI-SPECIFIC ASSET

SonarLint now provides ability to fix select issues with quick fixes.

Supported languages

Click on the language to see the list of supported rules.

Feature overview

When a file is open and there are issues with quick fixes then a lightbulb will appear on the line of the issue.

LightBulb on line with QuickFixes

If lightbulb is clicked a menu with possible quick fixes will be opened.

Menu with applicable quick fixes

If one of the quick fixes are selected the fix will be applied automatically.

Fixed applied

Known Limitations

  • Quick fixes for the whole line are always shown #2878
  • When an edit elsewhere invalidates an issue quick fixes are visible till a new analysis is run.

tabbed

Visual Studio Code

PLACE VISUAL STUDIO CONTENT HERE TO ENTERED INTO THE KONTENT.AI-SPECIFIC ASSET

Clone this wiki locally