Skip to content

CC0116: Left and right side of assignment must not be the same entity #746

@kwhitefoot

Description

@kwhitefoot

New analyzer:

In VB.Net if you follow the MS recommended naming convention you will almost certainly end up with classes that look a bit like this:

Before:

Class A

Public B as double

public Sub New(b as double)
  B = b
end Sub

After:

Class A

Public B as double

public Sub New(b as double)
  Me.B = b
end Sub

The problem is that the compiler will not complain.

Diagnostic Id: CC0126
Category: Naming
Severity: Warning

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions