-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SLCORE-988 allow clients to request which c# analyser to use #1123
base: master
Are you sure you want to change the base?
SLCORE-988 allow clients to request which c# analyser to use #1123
Conversation
8d7febb
to
c6807e7
Compare
2bff000
to
2857579
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A first round of comments, we can discuss tomorrow if needed
* Introduce a new method `org.sonarsource.sonarlint.core.rpc.protocol.backend.analysis.AnalysisRpcService.shouldUseEnterpriseCSharpAnalyzer` to allow clients to know what kind of C# analyzer should be used for the analysis | ||
* The method returns a boolean value indicating whether the enterprise C# analyzer should be used or not | ||
* The method returns `true` if a binding exists for config scope AND the related connected server has the enterprise C# plugin (`csharpenterprise`) installed | ||
* The method returns `true` if binding exists with a SonarQube version < 10.8 (i.e. SQ versions that do not include repackaged dotnet analyzer) OR SonarCloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be false
for this 2nd sentence? Also, what about standalone mode?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence seems correct to me. For SQ versions <10.8, the analyzer used to include ALL rules, including those that are moving to the enterprise analyzer now. So in order for users not to lose those rules, we will use enterprise analyzers.
Standalone will return false
. I will update the doc.
backend/core/src/main/java/org/sonarsource/sonarlint/core/sync/SynchronizationService.java
Outdated
Show resolved
Hide resolved
...va/org/sonarsource/sonarlint/core/repository/connection/AbstractConnectionConfiguration.java
Outdated
Show resolved
Hide resolved
93e56aa
to
a282442
Compare
a282442
to
0db9bab
Compare
Quality Gate passedIssues Measures |
SLCORE-988