Questions tagged [sonarlint-vs]

SonarLint for Visual Studio is an extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.

SonarLint for Visual Studio is an extension that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.

More can be found at http://www.sonarlint.org/visualstudio/index.html

© 2008-2015, SonarSource S.A, Switzerland

67 questions
2
votes
1 answer

How to unbind Sonar server from the project in VS2019?

How does one disconnect/unbind/decouple the Sonar server from the project? I see no option to Disconnect.
FMFF
  • 1,652
  • 4
  • 32
  • 62
2
votes
1 answer

How to set severity based on the issue type for SonarLint for Visual Studio?

I want to set Bugs and Vulnerabilities as errors and Code Smells as warnings for the SonarLint extension in Visual Studio. I prefer to set it generically, rather than right-clicking each issue and setting its severity. Is it possible for me to do…
Arjun D Nair
  • 217
  • 1
  • 3
  • 14
2
votes
2 answers

Run SonarCloud Analyze Manually From Visual Studio

I have paid account in Sonarcloud and Gitlab CI for automation, I use Visual Studio with integrated SonarLint for C#. Sometimes I want to run analyzing manually from VS and not using Gitlab runner every time. Is there a way to bypass pipeline? The…
user13821287
2
votes
1 answer

How to configure a specific SonarLint Rule in Visual Studio 2015

I have SonarLint C# in Visual Studio 2015 Enterprise Update 3 on Windows 10, my solution is bound successfully with a SonarQube server, code analysis in my projects works fine, I can see the SonarLint warnings in the output window. I want to…
2
votes
1 answer

SonarLint/Visual Studio: A single ruleset for all projects in solution

When I connect from VS2015 to SonarQube server using SonarLint, SonarLint starts to download nuget packages and then adds a .ruleset file for each project. Is it possible to have only one ruleset defined for the solution (the one from here…
Angela
  • 477
  • 1
  • 10
  • 20
2
votes
0 answers

Using SonarLint for Visual Studio with TFS: Sharing rulesets accross development teams

We'd like to use SonarQube/SonarLint on a rather huge C# solution with around 40 projects (C++ solutions hopefully to come later on). However, we are struggling with VS integration. The issue is as follows: We've defined a Quality Profile on the…
csoltenborn
  • 1,127
  • 1
  • 12
  • 22
2
votes
0 answers

VS 2015 project binding issue with SonarQube

I get below error when I try to bind to a SonarQube project within VS 2015. Binding solution to SonarQube project: Download quality profile(s): Successfully downloaded quality profile. Name: 'Sonar way', Key: 'cs-sonar-way-33351', Language:…
Rasik Bapotra
  • 35
  • 1
  • 8
2
votes
1 answer

Custom SonarQube rules generated with Roslyn SDK Generator have always issue type "Code Smell"

I'm trying to create a custom SonarQube rule in VisualStudio 2015, using the Roslyn SDK Generator. The generator works fine and I'm able to publish the .jar file to SonarQube server and use my custom rule in daily builds. Now I would like to…
2
votes
1 answer

Can I add custom rule to rule set of sonarlint

I am running Sonarlint plugin in Visual studio independently of sonarqube. Can I add custom rule to ruleset of sonarlint?? I tried to check if there is edit/add rules in ruleset.
2
votes
1 answer

sonarlint rules appear in error list, but no ruleset file found

I have a project in Visual Studio 2015 Update 2 with SonarLint 2.1 installed. I'm seeing the sonarlint rules in the Error List as expected, but I want to disable a rule. I tried to view the project's active ruleset, as explained here: Can I…
2
votes
1 answer

Remove Auto-generated Code from SonarLint Analysis

Background I am running Visual Studio 2015 Enterprise (RTM) and have enabled the SonarLint extension for code analysis of my multi-project ASP.NET 4.5 MVC solution. Problem SonarLint analysis seems to be ignoring the project setting for Code…
Jamie F
  • 23,189
  • 5
  • 61
  • 77
1
vote
0 answers

Issue with Sonarqube connection with Sonarlint in Visual Studio 2022

I am trying to work in connected mode in between Sonarlint extension in Visual Studio 2022 and Sonarqube using Token, I get the following error : ERROR: Could not find compatible implementation of 'IGetExclusionsRequest' for SonarQube…
1
vote
1 answer

Unable to connect SonarLint to SonarQube on VS Code

I’m trying to connect my SonarLint Plugin with my SonarQube Server, but when i try to update bindings, this error appear in the SonarLint Output: Failed to read file:…
1
vote
2 answers

Extract the assignment of "numberImg" from this expression. sonarlint(Javascript:S1121)

import React, { useState } from "react"; import arrowRight from "../images/arrowRight.svg"; function Slider({ images }) { let [showPicture, setShowPicture] = useState(0); let numberImg = images.length; const imgPrevious = () => { …
1
vote
1 answer

How to handle InterruptException on Future#get()?

public void produceMessage(String dataPushNotif) { PushNotif msg = PushNotif.newBuilder() .setDatapushnotif(dataPushNotif) .build(); ListenableFuture> future = …