rspec/rules/S1128/vbnet/rule.adoc
Alban Auzeill 2c306d110e Fix code block ambiguity with old header style
Ensure blank line before list and clean the one leading space
2020-06-30 17:16:12 +02:00

31 lines
721 B
Plaintext

Although unnecessary won't change anything to the produced application, removing them:
* Will help readability and maintenance.
* Will help reduce the number of items in the IDE auto-completion list when coding.
* May avoid some name collisions.
* May improve compilation time because the compiler has fewer namespaces to look-up when it resolves types.
== Noncompliant Code Example
----
Imports System.Collections.Generic // Noncompliant - unnecessary using
Module Module1
Sub Main(path As String)
File.ReadAllLines(path);
End Sub
End Module
----
== Compliant Solution
----
Imports System.IO
Module Module1
Sub Main(path As String)
File.ReadAllLines(path);
End Sub
End Module
----