-
Notifications
You must be signed in to change notification settings - Fork 231
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
S5773: VB.NET implementation #7623
Conversation
3949322
to
65ce403
Compare
65ce403
to
1d541aa
Compare
9482796
to
190a3a7
Compare
4f19999
to
6cc406f
Compare
6cc406f
to
4344119
Compare
75a21c5
to
2e10b80
Compare
@@ -35,6 +35,28 @@ public override bool ShouldExecute() | |||
return walker.Result; | |||
} | |||
|
|||
protected override SyntaxNode BindToTypeDeclaration(IOperation operation) => |
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.
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?
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.
Some improvements
{ | ||
"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 | ||
} | ||
} | ||
} |
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.
TP, nice!
analyzers/src/SonarAnalyzer.CSharp/SymbolicExecution/Roslyn/RestrictDeserializedTypes.cs
Outdated
Show resolved
Hide resolved
analyzers/src/SonarAnalyzer.CSharp/SymbolicExecution/Roslyn/RestrictDeserializedTypes.cs
Outdated
Show resolved
Hide resolved
analyzers/src/SonarAnalyzer.CSharp/SymbolicExecution/Roslyn/RestrictDeserializedTypes.cs
Outdated
Show resolved
Hide resolved
analyzers/src/SonarAnalyzer.VisualBasic/SymbolicExecution/Roslyn/RestrictDeserializedTypes.cs
Outdated
Show resolved
Hide resolved
...alyzer.UnitTest/TestCases/SymbolicExecution/Roslyn/RestrictDeserializedTypes.LosFormatter.vb
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Kudos, SonarCloud Quality Gate passed! |
Co-authored-by: mary-georgiou-sonarsource <mary.georgiou@sonarsource.com> Co-authored-by: Tim Pohlmann <tim.pohlmann@sonarsource.com>
Co-authored-by: mary-georgiou-sonarsource <mary.georgiou@sonarsource.com> Co-authored-by: Tim Pohlmann <tim.pohlmann@sonarsource.com>
Fixes #7565
RSPEC PR: SonarSource/rspec#2481