rspec/rules/S3449/vbnet/rule.adoc
2020-12-23 14:59:06 +01:00

21 lines
306 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
Dim o As Object = 5
Dim x As Integer = 5
x = o >> 5 ' Noncompliant
x = x >> o ' Noncompliant
----
== Exceptions
This rule does not raise when the left or the right expression is ``Nothing``.
----
x = Nothing >> 5
x = 5 >> Nothing
----