Brief description:
Make Invert If aware of the compliment pair of TypeOf ... Is ... and TypeOf ... IsNot ...
Languages applicable:
Maybe both, primarily VB.
Code example that the analyzer should report:
Source
If TypeOf e Is t Then
' Statements 0
Else
' Statements 1
End If
Expected
If TypeOf e IsNot t Then
' Statements 1
Else
' Statements 0
End If
Actual
If Not TypeOf e Is t Then
' Statements 1
Else
' Statements 0
End If
Additional information:
Any more additional information you would like to add.
Documentation requirements:
When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.
Brief description:
Make
Invert Ifaware of the compliment pair ofTypeOf ... Is ...andTypeOf ... IsNot ...Languages applicable:
Maybe both, primarily VB.
Code example that the analyzer should report:
Source
Expected
Actual
Additional information:
Any more additional information you would like to add.
Documentation requirements:
When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.