rspec/rules/S3904/vbnet/rule.adoc

33 lines
561 B
Plaintext
Raw Normal View History

include::../why.adoc[]
== How to fix it
2021-01-23 04:07:47 +00:00
=== Code examples
2021-01-23 04:07:47 +00: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
' ...
2021-01-23 04:07:47 +00:00
End Namespace
----
==== Compliant solution
2021-01-23 04:07:47 +00:00
[source,vbnet,diff-id=1,diff=type=compliant]
2021-01-23 04:07:47 +00:00
----
Imports System.Reflection
<Assembly: AssemblyTitle("MyAssembly")>
<Assembly: AssemblyVersion("42.1.125.0")>
2021-01-23 04:07:47 +00:00
Namespace MyLibrary
' ...
2021-01-23 04:07:47 +00:00
End Namespace
----
include::../resources.adoc[]
include::../rspecator.adoc[]