Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Code fix in CC0014 TernaryOperatorAnalyzer remove comments #551

Copy link
Copy link
@filippobottega

Description

@filippobottega
Issue body actions

Code fix for CC0014 TernaryOperatorAnalyzer is not compatible with comments in VB code.
Example:
Original code:
If stackFrameItem.GetMethod.DeclaringType Is Nothing Then
declaringType = "" 'MLHIDE
Else
declaringType = stackFrameItem.GetMethod.DeclaringType.ToString
End If
Fixed code:
declaringType = If(stackFrameItem.GetMethod.DeclaringType Is Nothing, "", stackFrameItem.GetMethod.DeclaringType.ToString)

'MLHIDE comment was deleted.

Regards,
Filippo Bottega

Reactions are currently unavailable

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.