There is a way to do it in Visual Studio and Eclipse but I couldn't find a way to enable or disable the rules on Visual Studio Code. I do have SonarQube running on my local server where I can disable and enable the rules from the Admin UI page. If there is a way to configure the SonarLint. You can do it any time in the Visual Studio Options under the SonarLint section. Live analysis of C# and VB.NET Out of the box you get analysis of C# and VB.NET as you type. To analyze all files, enable Visual Studio full solution analysis (see here) under the usual Visual Studio Analyze menu. SonarLink is an extension for Microsoft Visual Studio 2019 which makes it easy to visualize SonarQube issues. It enables you to connect your local solution to a SonarQube server, allowing you to retrieve issues directly from within the IDE. Universal solution that support all programming languages.
Visual Studio is a suite of component-based software development tools and other technologies for building powerful, high-performance applications. SonarQube With a Quality Gate set on your project, you will simply fix the Leak and start mechanically improving.
SonarLint spots bugs and quality issues as fast as you code.
- 5 languages supported: C#, VB .Net, C, C++ and Javascript.
- Open source, Roslyn based code analyzers.
- Deep code analysis algorithms using pattern matching and dataflow analysis
- Hundreds of rules, and growing.
- Comes with explanations to resolve detected issues.
Get started in seconds
Simply open a file within a project or a solution, start coding, and you will start seeing issues detected by SonarLint.
Visit SonarLint website: https://vs.sonarlint.org
Smart code analysis, on the fly
Detect quality issues as you code
SonarLint gives immediate feedback on bugs, code smells and vulnerabilities.
Smart code analysis, on the fly
Detect quality issues as you code
SonarLint gives immediate feedback on bugs, code smells and vulnerabilities.
Remain focused and productive
SonarLint lists issues found in all the files that you updated. It subtly points out these issues so that you can still focus on coding.
Get clear explanations to fix issues
SonarLint provides you with all the information you need to understand and fix issues.
Fully integrated in Visual Studio
Sonarlint Visual Studio Code
SonarLint leverages the .NET Compiler Platform ('Roslyn') to offer a fully integrated Visual Studio experience.
Check the rules to see what SonarLint can do for you:
C# | See rules |
VB.NET | See rules |
C | See rules |
C++ | See rules |
JavaScript | See rules |
SonarQube and SonarCloud connected mode
SonarLint can be connected to a SonarQube server or SonarCloud to share rulesets, get event notifications and use a resolution flow.
Learn more about SonarQube.
Have question or feedback?
Visual Studio C# Lint
The preferred way to discuss about SonarLint is by posting on the SonarSource Community Forum. Feel free to ask questions, report issues, and give suggestions.
How to contribute
Sonarlint Visual Studio
Check out the contributing page to see the best places to log issues and start discussions.
License
Copyright 2016-2020 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0