
## Review A dedicated reviewer checked the rule description successfully for: - [ ] logical errors and incorrect information - [ ] information gaps and missing content - [ ] text style and tone https://sonarsource.github.io/rspec/#/rspec/S3904/csharp
33 lines
561 B
Plaintext
33 lines
561 B
Plaintext
include::../why.adoc[]
|
|
|
|
== How to fix it
|
|
|
|
=== Code examples
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,vbnet,diff-id=1,diff=type=noncompliant]
|
|
----
|
|
Imports System.Reflection
|
|
<Assembly: AssemblyTitle("MyAssembly")> ' Noncompliant
|
|
Namespace MyLibrary
|
|
' ...
|
|
End Namespace
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,vbnet,diff-id=1,diff=type=compliant]
|
|
----
|
|
Imports System.Reflection
|
|
<Assembly: AssemblyTitle("MyAssembly")>
|
|
<Assembly: AssemblyVersion("42.1.125.0")>
|
|
Namespace MyLibrary
|
|
' ...
|
|
End Namespace
|
|
----
|
|
|
|
include::../resources.adoc[]
|
|
|
|
include::../rspecator.adoc[]
|