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.
66
questions
1
vote
1
answer
434
views
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: /home/valentina/.sonarlint/...
2
votes
0
answers
544
views
List of SonarLint rules
I'm using Sonarlint to control bugs/code smells from a list of codes, by extracting each output from VS Code and creating some graphs with Python/Pandas. Even though we can find the rules in https://...
1
vote
2
answers
98
views
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);
...
1
vote
1
answer
240
views
How to handle InterruptException on Future#get()?
public void produceMessage(String dataPushNotif) {
PushNotif msg = PushNotif.newBuilder()
.setDatapushnotif(dataPushNotif)
.build();
ListenableFuture<SendResult<...
0
votes
1
answer
108
views
Error in sonarqube configuration using command prompt
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error: Could not create the Java Virtual Machine.
jvm 1 | Error: A fatal exception has occurred. Program will ...
0
votes
1
answer
81
views
getting error in SonarLint configuration using Visual Studio
The following error occurs when trying to launch SonarQube:
C:\sonarqube-9.5.0.56709\bin\windows-x86-64>startsonar
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 ...
3
votes
1
answer
2k
views
how to configure sonarlint in VScode for C language?
I'm practising clean code and I installed sonarlint as a static testing tool to help me write clean code. after installing the editor rises this notification
SonarLint is unable to analyze C and C++ ...
2
votes
0
answers
38
views
SonarLint in Visual Studio 2019 throws "PARSING unknown: Support for the experimental syntax 'classProperties' isn't currently enabled"
I want to use SonarLint in Visual Studio to parse Javascript code. I am getting below error in Visual Studio output window when selected SonarLint dopdown.
Failed to parse file 'D:\Latest Virtuoso ...
1
vote
0
answers
238
views
SonarLint plugin misses some (SonarCloud's) rules locally
TL;DR -> Force code smells to apear as SonarCloud issues on IDE
I got SonarLint plugin (vscode) installed locally and configured with external SonarCloud rules (by my organization's project).
The ...
1
vote
1
answer
629
views
SonarLint.xml is added to every VS project? Where can I read about it?
When I integrated SonarLint into my VS solution, I got a SonarLint.xml file ref. for every project. I wonder, how it is used? Can I remove this reference? Couldn't find any documentation about it.
2
votes
1
answer
920
views
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.
0
votes
0
answers
2k
views
Sonarlint for Visual Studio Code is not displaying anything for Java after binding
I am trying to get SonarLint (v2.0.0) configured with VS Code (v1.57.0) connected to a SonarQube server (v8.1). Java Runtime (JRE) 8 is installed on my computer.
I have configured the workspace and ...
2
votes
1
answer
761
views
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 ...
2
votes
2
answers
5k
views
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 ...
0
votes
2
answers
876
views
Simplify ternary operator
I want to set the variable notEmpty to true or false with a ternary operator, but my VSCode sonarlint marks it underlined in blue with the comment: Simplify this expression
Code:
const notEmpty = list....
0
votes
1
answer
742
views
Solve this error message : please double check the project key and sonar url
I want to use Sonar Lint plugin in VS Code to scan and analyse the Type Script code in Angular project.
I installed Sonar Lint plugin version 1.15.0 and added this conf inside the settings.json file :
...
0
votes
1
answer
2k
views
Why are some SonarQube rules not present in SonarLint in Visual Studio
I didn´t understand this bellow difference between SonarLint and SonarQube.
Is my sonarLint configuration missing?
See print bellow
Compare rules from SonarQube to SonarLint
Thanks folks!
7
votes
1
answer
18k
views
How to ignore sonar rule to specific line of code in c#?
I use sonarLint. I want the sonar test not to be performed for a specific line.I used '//NOSONAR' but it didn't work. Does not specify the error number.
EDIT: The error still appears in sonarlint ...
6
votes
1
answer
5k
views
Show Cognitive Complexity of method in Visual Studio
While using SonarLint and SonarQube in Visual Studio (2017), is there a way to display the Cognitive Complexity of a method anywhere?
It is shown when it exceeds the maximum value, but I can't seem ...
1
vote
0
answers
2k
views
Sonarlint not working in visual studio code
I have installed sonarlint plugin in visual studio code but I am getting this error
I have set the java environment variable and created a sample java file which is working fine. I can't figure out ...
0
votes
1
answer
4k
views
SonarLint Analysis failed when using VS Code extension for JavaScript files
I've tried to set up the SonarLint Extension for Visual Studio Code on Windows, and followed the instructions to use Connected mode. I think I've set it up correctly because in the SonarLint output ...
0
votes
0
answers
342
views
Assembly.LoadFile is non-compliant?
I recently followed an example for pre-loading several DLLs from the bin folder as described here:
https://stackoverflow.com/a/5599581/1099519
This actually did work as expected, but I am using ...
1
vote
0
answers
403
views
SonarLint for Visual Studio showing http 403 error
We have a self-signed certificate for our SonarQube site. Certificate is issued on domain name.
Tools Version
1. SonarQube - 6.3
2. Visual Studio - 2015
3. SonarLint - 4.3.0.3718
Steps done for ...
4
votes
2
answers
4k
views
SonarLint on Visual Studio does not show warning in Error pane
Visual Studio 2017 (15.7.4) with SonarLint 4.1.0.3539 extension installed.
Loaded ASP.NET Core 2.0 solution, which consists of projects, targeting either .Net Framework 4.7.1 or .Net Standard 2.0. ...
0
votes
1
answer
1k
views
SonarLint with Visual Studio
I installed SonarLint plugin for Visual Studio.
Can I perform code analysis with SonarLint without connecting to SonarQube server?
From other blogs, I understand "code analysis" option is shown in ...
1
vote
0
answers
99
views
How to publish sonarqube scanned reports to multiple SonarQube Instances..?
I have two SonarQube Instances one is 6.1 Developers Edition and the other one is 6.7 LTS version.
I want to publish the scanned results to two Sonar Instances.
How can i achieve this..?
Regards,
...
8
votes
2
answers
3k
views
Does SonarLint provide any advantage over SonarAnalyzer.CSharp
On the SonarAnalyzer.CSharp Nuget Package it has the Description:
Analyzers which spot bugs and code smells in your code. This package is best used together with SonarLint for Visual Studio (http://...
0
votes
1
answer
181
views
sonarqube locally published but report is not generated via visual studio 2015 update 3
I have installed sonarqube locally version : sonarqube-6.7.2
I am able to login in sonarbube locally using http://localhost:9000
created project and bind to one of my visual studio project.
But when ...
0
votes
1
answer
227
views
How should I start with SonarLint for C# Projects
I am learning SonarLint plugin but finding very difficult and not able to understand how it works.
I have installed SonarLint for VS2015 Community Edition and then as per instructions i was trying to ...
0
votes
0
answers
301
views
Sonarlint additional language download failing
Steps did:
Installed Sonarlint for visual studio 2015 from market place
During istallation asked to install additional support for javascript. I accepted. But download failed.
I tried to add ...
4
votes
2
answers
5k
views
Path JRE on VSCode MacOS
What is the correct path of JRE8 that I put in sonarlint.ls.javaHome in VSCode in MacOS so that it works correctly?
I have tried this:
\\Library\\Internet Plug-Ins\\JavaAppletPlugin.plugin\\Contents\...
6
votes
3
answers
3k
views
Disable SonarLint analysis during Debug build
Is it possible (in Visual Studio using SonarLint extension) to disable Sonar Analyzers during Debug build, but keep them enabled in Release build? The reason is that connecting the solution to ...
0
votes
1
answer
874
views
Failed to install NuGet package 'SonarAnalyzer.CSharp' for project. Message: This package can only be installed on Visual Studio 2015
I am using Visual Studio 2017 and created Test Project to bind with SonarQube server using SonarLint. When I clicked on project to bind, I am getting below error.
"Binding solution to SonarQube ...
0
votes
1
answer
811
views
SonarLint for Visual Studio failing with 404 (Not Found) error
We are trying to use SonarLint on Visual studio 2015 and our Sonarqube version is 4.5.7.
But it is not binding its SophisWebApi to sonar server because of below error :
Binding solution to SonarQube ...
2
votes
1
answer
4k
views
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 ...
0
votes
1
answer
638
views
SonarLint v 3.0.0.1569 not displaying JavaScript Issues
I am using SonarLint v 3.0.0.1569 with Visual Studio 2015 version 14.0.25431.01 Update 3. SonarLint seems to be working perfectly with C# code, but for JavaScript code, I get the squiggly green ...
0
votes
0
answers
740
views
Understand Sonarlint with visual studio connected mode.
We are planning to use SonarLint with VS 2015 , and we are having multiple Development branch and respective sonar projects for each Dev branch.
If I use connected mode with in visual studio then ...
2
votes
1
answer
1k
views
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 ...
0
votes
1
answer
232
views
SonarQube, SonarLint and Integration Services Script tasks and components
Need to know if SonarQube and SonarLint will reach inside SQL Server Integration Services packages to perform code analysis on embedded C#/VB Script tasks and components.
2
votes
0
answers
670
views
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 ...
0
votes
1
answer
1k
views
Visual Studio 2015 project binding issue with SonarQube
I'm using Visual Studio 2015 and installed SonarLint Version 2.9.0. Getting below error when I try to bind solution with the SonarQube project. I couldn't find any references to resolve this issue.
...
4
votes
2
answers
4k
views
How to stop SonarLint suppressed warnings from continually reappearing in the VS Errors screen
We're trying SonarLint with VS2015 Enterprise and have an irritating problem which could be a show-stopper unless we resolve it. Core i5 processor, 8GB memory, large SSD, Windows 7 Pro:
We have ...
6
votes
1
answer
6k
views
Running SonarLint VisualStudio plugin without SonarQube
I have installed SonarLint extension (V 2.8) for Visual Studio 2015.
Can the code be analysed locally WITHOUT connecting to a SonarQube server?
Do I need to install something else in order to analyze ...
0
votes
2
answers
1k
views
SonarLint for Visual Studio 2017 RC
Does anyone know if the sonar lint visual studio 2015 extension can be applied to visual studio 2017 RC?
Is there much difference between the two IDE's that affects the way the plugin works? Is it ...
-1
votes
1
answer
56
views
SonarLint Binding Project Count Error since Version 2.8.0.214
I have the same problems as the user on the page SonarLint Binding Error since Version 2.8.0.214 - Project Count out of Range?.
On your Jira board I found the ticket https://jira.sonarsource.com/...
2
votes
0
answers
431
views
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: '...
0
votes
1
answer
2k
views
SonarQube Pre-commit analysis for JavaScript
I need to find a way to do a pre-commit incremental analysis with rules supplied by SonarQube 5.4 hosted on a server. The most important files to analyze are JavaScript files, and we are working in C# ...
2
votes
1
answer
783
views
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 ...
1
vote
1
answer
377
views
SonarLint Binding Error since Version 2.8.0.214 - Project Count out of Range?
I am facing an error while binding a Solution to my SonarQube Projects. I am using VS 2015 Update 3, SonarLint 2.8.0.214 and SonarQube 5.6. Also the Update on already bound Projects fails.
I guess ...
1
vote
1
answer
1k
views
Sonarqube code analysis using SonarLint for Visual studio 2015
I have successfully installed sonarlint into visual studio 2015 but not able to bind project with sonarlint, I also dont know that how to use sonarlint. plz help