Skip to content

Conversation

@gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Aug 28, 2025

{
var languageToDllsMap = new Dictionary<RoslynLanguage, List<string>>
{
{ RoslynLanguage.CSharp, GetAnalyzerFullPathsByLanguage(RoslynLanguage.CSharp, analyzerInfoDto.ShouldUseCsharpEnterprise) },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hardcoded mapping :-/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do need a mapping, because of the bool values. Either I do it here, either I do it in another model, I still need to map each language to the corresponding bool

@sonarqubecloud
Copy link

🤖 Pull Request summary

Updates SLOOP version to 10.29.0 and refactors analyzer configuration to support enterprise analyzer selection.

Version bump: SLOOP embedded version updated from 10.28.0 to 10.29.0
API consolidation: Merged GetBasicAnalyzerFullPathsByLanguage() and GetEnterpriseAnalyzerFullPathsByLanguage() into single GetAnalyzerFullPathsByLanguage() method
Enterprise analyzer control: Added AnalyzerInfoDto parameter to control C# and VB.NET enterprise analyzer inclusion per language
Request model update: Extended AnalysisRequest to include AnalyzerInfo field for analyzer selection
Dependency cleanup: Removed ILanguageProvider dependency from analyzer locator

Focus areas for review:

  • Verify the analyzer selection logic correctly filters enterprise analyzers based on AnalyzerInfoDto flags
  • Ensure backward compatibility with the consolidated analyzer locator interface

💬 Please send your feedback

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource merged commit b74c888 into feature/sqvs-roslyn-plugin Aug 28, 2025
3 checks passed
@gabriela-trutan-sonarsource gabriela-trutan-sonarsource deleted the gt/dotnet-repackaging branch August 28, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants