Sonarlint Code Analysis Tool for C, C++, C#, Java and more

Sonarlint is one of the very popular code analysis tool that detect the code quality and security issues on the fly. The key benefits using Sonarlint to detect bugs by applying thousands of rules which detect common mistakes in our code. It works just like a spell-checker, where issues get detected on-the-fly and reported as we write the code. Sonarlint precisely pinpoints where the problem is and provides the recommendations on how to fix it.

Sonarlint provides rich document sets that help us to understand the issues better and discover the coding best practices. Sonarlint is multilingual and support many languages. After installing Sonarlint plugin, a startup notification will ask for installing support for additional languages. You can do this any time from Sonarlint menu option.

Recommended:   SnippetCompiler for .NET

Sonarlint is an easy to use plugin where it don’t need any configuration after the installation.
Full solution analysis can be done by additional configuration in visual studio.
Sonarlint is integrated with Microsoft Code Analysis framework. The rules can be fin tuned in the .ruleset file.
Sonarlint plugin can be installed or supported by below list of development IDEs

  • Eclipse
  • IntelliJ IDEA
  • Visual Studio
  • VS Code

Sonarlint Rules:

Sonarlint fully automated which makes your code reliable by avoiding bugs and undefined behavior. It makes your code secured by avoiding breaches or attacks. Also, it makes your code maintainable by code updates.

sonarlint defined set of rules for each programming languages in order to validate the target code and provide necessary fix if there any issues. You can see all rules by following the rules.sonarsource.com. This is the official document repository of sonarlint which covers ruleset of all the languages. The document explains each rule in-depth by providing problem definition and associated solution with code snippets. This is one of the good resource for developer to understand themselves how to code better.

Recommended:   Dependency Walker - Dependency analysis tool for EXE, DLL, OCX, SYS files

Supported Languages:

Sonarlint covers most of the popular programming languages are listed below.
ABAP, Apex, C, C++, COBAL, C#, CSS, Flex, Go, HTML, Java, JavaScript, Kotlin, ObjectiveC, PHP, PL/I, PL/SQL, Python, RPG, Ruby, Scaala, Swift, TypeScript, T-SQL, VN.NET, VB6, XML.

Download location:

Solarlint can be downloaded from its official download location.
Sonarlint is currently supported for three major Visual Studio version 2015, 2017 and 2019.

Sonarlint reports issues on the files that we are editing. The Output panel, show output from Sonarlint as well. The verbosity can be increased in the Visual Studio options under Sonarlint menu item.

Share this:

We will be happy to hear your thoughts

Leave a reply