rspec/rules/S3904/csharp/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

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