2023-06-09 17:19:16 +02:00
|
|
|
include::../why.adoc[]
|
2023-05-03 11:06:20 +02:00
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
== How to fix it
|
2021-01-23 04:07:47 +00:00
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
=== Code examples
|
2021-01-23 04:07:47 +00:00
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
==== Noncompliant code example
|
|
|
|
|
|
|
|
[source,vbnet,diff-id=1,diff=type=noncompliant]
|
2021-01-23 04:07:47 +00:00
|
|
|
----
|
|
|
|
Imports System.Reflection
|
|
|
|
<Assembly: AssemblyTitle("MyAssembly")> ' Noncompliant
|
|
|
|
Namespace MyLibrary
|
2023-06-09 17:19:16 +02:00
|
|
|
' ...
|
2021-01-23 04:07:47 +00:00
|
|
|
End Namespace
|
|
|
|
----
|
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
==== Compliant solution
|
2021-01-23 04:07:47 +00:00
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
[source,vbnet,diff-id=1,diff=type=compliant]
|
2021-01-23 04:07:47 +00:00
|
|
|
----
|
|
|
|
Imports System.Reflection
|
|
|
|
<Assembly: AssemblyTitle("MyAssembly")>
|
2023-06-09 17:19:16 +02:00
|
|
|
<Assembly: AssemblyVersion("42.1.125.0")>
|
2021-01-23 04:07:47 +00:00
|
|
|
Namespace MyLibrary
|
2023-06-09 17:19:16 +02:00
|
|
|
' ...
|
2021-01-23 04:07:47 +00:00
|
|
|
End Namespace
|
|
|
|
----
|
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
include::../resources.adoc[]
|
2021-09-20 15:38:42 +02:00
|
|
|
|
2023-06-09 17:19:16 +02:00
|
|
|
include::../rspecator.adoc[]
|