Skip to content
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

SCAN4NET-222 Refactor RoslynAnalyzerProvider FetchAnalyzerPlugins #2303

Merged

Conversation

alex-meseldzija-sonarsource
Copy link
Contributor

@alex-meseldzija-sonarsource alex-meseldzija-sonarsource commented Jan 30, 2025

SCAN4NET-222

Part of SCAN4NET-171

This PR is based on top of #2300

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod bot changed the title Refactor RoslynAnalyzerProvider FetchAnalyzerPlugins SCAN4NET-222 Refactor RoslynAnalyzerProvider FetchAnalyzerPlugins Jan 30, 2025
Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

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

Polishing

@alex-meseldzija-sonarsource alex-meseldzija-sonarsource force-pushed the alex/refactor-fetch-analyzer-plugin branch 3 times, most recently from 5e1962f to d09d656 Compare January 30, 2025 14:00
Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

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

LGTM

act = () => new Plugin("key", "version", "\r\n ");
act.Should().ThrowExactly<ArgumentNullException>().And.ParamName.Should().Be("staticResourceName");
var plugin = new Plugin();
plugin.AddProperty("pluginKey", "someKey");
Copy link
Contributor

Choose a reason for hiding this comment

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

Separate scaffolding from assertions to follow our usual test shape. Write 4x AddProperty and then 3x Should()

The last AddProperty should be the ("someOtherProperty", "someOtherValue") as before, to prove that it's a NO-OP

Base automatically changed from alex/refactor-code to master January 31, 2025 13:14
@alex-meseldzija-sonarsource alex-meseldzija-sonarsource force-pushed the alex/refactor-fetch-analyzer-plugin branch 2 times, most recently from 5fb0eda to 1e11364 Compare January 31, 2025 13:26
@alex-meseldzija-sonarsource alex-meseldzija-sonarsource marked this pull request as ready for review January 31, 2025 13:27
@alex-meseldzija-sonarsource alex-meseldzija-sonarsource force-pushed the alex/refactor-fetch-analyzer-plugin branch from 1e11364 to f4efaca Compare January 31, 2025 14:45
@alex-meseldzija-sonarsource alex-meseldzija-sonarsource merged commit 2a380d6 into master Jan 31, 2025
15 checks passed
@alex-meseldzija-sonarsource alex-meseldzija-sonarsource deleted the alex/refactor-fetch-analyzer-plugin branch January 31, 2025 15:20
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