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

S5773: VB.NET implementation #7623

Merged
merged 16 commits into from
Jul 24, 2023

Conversation

zsolt-kolbay-sonarsource
Copy link
Contributor

Fixes #7565
RSPEC PR: SonarSource/rspec#2481

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource force-pushed the Zsolt/S5773-vbnet-implementation branch from 3949322 to 65ce403 Compare July 19, 2023 12:13
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource changed the title Zsolt/s5773 vbnet implementation S5773: VB.NET implementation Jul 19, 2023
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource force-pushed the Zsolt/S5773-vbnet-implementation branch from 65ce403 to 1d541aa Compare July 19, 2023 12:28
@Tim-Pohlmann Tim-Pohlmann force-pushed the Tim/S5773_Implementation branch from 9482796 to 190a3a7 Compare July 19, 2023 13:46
@mary-georgiou-sonarsource mary-georgiou-sonarsource force-pushed the Zsolt/S5773-vbnet-implementation branch 4 times, most recently from 4f19999 to 6cc406f Compare July 20, 2023 14:46
Base automatically changed from Tim/S5773_Implementation to master July 20, 2023 15:52
@Tim-Pohlmann Tim-Pohlmann force-pushed the Zsolt/S5773-vbnet-implementation branch from 6cc406f to 4344119 Compare July 21, 2023 11:36
@@ -35,6 +35,28 @@ public override bool ShouldExecute()
return walker.Result;
}

protected override SyntaxNode BindToTypeDeclaration(IOperation operation) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

I find this name confusing - because of the verb Bind it sounds like it Binds something, when my understanding is that it tries to find the declaration of a particular method. Is that correct?

Copy link
Contributor

@Tim-Pohlmann Tim-Pohlmann left a comment

Choose a reason for hiding this comment

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

Some improvements

Comment on lines +3 to +15
{
"id": "S5773",
"message": "Restrict types of objects allowed to be deserialized.",
"location": {
"uri": "https://github.com/SonarSource/sonar-dotnet/blob/master/analyzers/its/sources/Ember-MM/Addons/scraper.EmberCore/TVScraper/clsScrapeTVDB.vb#L150",
"region": {
"startLine": 150,
"startColumn": 41,
"endLine": 150,
"endColumn": 59
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

TP, nice!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource merged commit 14115ea into master Jul 24, 2023
@zsolt-kolbay-sonarsource zsolt-kolbay-sonarsource deleted the Zsolt/S5773-vbnet-implementation branch July 24, 2023 13:50
mary-georgiou-sonarsource added a commit that referenced this pull request Jul 25, 2023
Co-authored-by: mary-georgiou-sonarsource <mary.georgiou@sonarsource.com>
Co-authored-by: Tim Pohlmann <tim.pohlmann@sonarsource.com>
mary-georgiou-sonarsource added a commit that referenced this pull request Jul 26, 2023
Co-authored-by: mary-georgiou-sonarsource <mary.georgiou@sonarsource.com>
Co-authored-by: Tim Pohlmann <tim.pohlmann@sonarsource.com>
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.

New Rule S5773: Types allowed to be deserialized should be restricted - VB.NET implementation
3 participants