2020-06-30 12:47:33 +02:00
|
|
|
Although unnecessary won't change anything to the produced application, removing them:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
|
|
|
* 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.
|
2020-06-30 12:47:33 +02:00
|
|
|
|
|
|
|
== 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
|
|
|
|
----
|
2021-06-02 20:44:38 +02:00
|
|
|
|
2021-06-03 09:05:38 +02:00
|
|
|
ifdef::env-github,rspecator-view[]
|
2021-06-08 15:52:13 +02:00
|
|
|
'''
|
2021-06-02 20:44:38 +02:00
|
|
|
== Comments And Links
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
include::comments-and-links.adoc[]
|
2021-06-03 09:05:38 +02:00
|
|
|
endif::env-github,rspecator-view[]
|