2020-06-30 14:41:58 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
|
|
|
|
== Sensitive Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
Imports System
|
|
|
|
Public Class C
|
|
|
|
Public Sub Main()
|
|
|
|
Dim x = Console.[In] ' Sensitive
|
|
|
|
Console.Read() ' Sensitive
|
|
|
|
Console.ReadKey() ' Sensitive
|
|
|
|
Console.ReadLine() ' Sensitive
|
|
|
|
Console.OpenStandardInput() ' Sensitive
|
|
|
|
End Sub
|
|
|
|
End Class
|
|
|
|
----
|
|
|
|
|
|
|
|
== Exceptions
|
|
|
|
|
2020-12-21 15:38:52 +01:00
|
|
|
This rule does not raise issues when the return value of the `+Console.Read+` `+Console.ReadKey+` or `+Console.ReadLine+` methods is ignored.
|
2020-06-30 14:41:58 +02:00
|
|
|
|
|
|
|
----
|
|
|
|
Imports System
|
|
|
|
|
|
|
|
Public Class C
|
|
|
|
Public Sub Main()
|
|
|
|
Console.ReadKey() ' Return value is ignored
|
|
|
|
Console.ReadLine() ' Return value is ignored
|
|
|
|
End Sub
|
|
|
|
End Class
|
|
|
|
----
|
|
|
|
|
|
|
|
include::../see.adoc[]
|