rspec/rules/S3904/vbnet/rule.adoc
Gregory Paidis 32bf576764
S3904: Migrate to layc level 2 (#2129)
## 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
2023-06-09 17:19:16 +02:00

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[]