
## 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
36 lines
554 B
Plaintext
36 lines
554 B
Plaintext
include::../why.adoc[]
|
|
|
|
== How to fix it
|
|
|
|
=== Code examples
|
|
|
|
==== Noncompliant code example
|
|
|
|
[source,csharp,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
using System.Reflection;
|
|
|
|
[assembly: AssemblyTitle("MyAssembly")] // Noncompliant
|
|
namespace MyLibrary
|
|
{
|
|
// ...
|
|
}
|
|
----
|
|
|
|
==== Compliant solution
|
|
|
|
[source,csharp,diff-id=1,diff-type=compliant]
|
|
----
|
|
using System.Reflection;
|
|
|
|
[assembly: AssemblyTitle("MyAssembly")]
|
|
[assembly: AssemblyVersion("42.1.125.0")]
|
|
namespace MyLibrary
|
|
{
|
|
// ...
|
|
}
|
|
----
|
|
|
|
include::../resources.adoc[]
|
|
|
|
include::../rspecator.adoc[] |