Antonio Aversa 9711d241b9 Modify rule S4159: LaYC format (#2036)
Adapts the rule to LaYC format level 2, for dotnet languages (csharp,
vbnet).
2023-06-07 12:01:33 +02:00

43 lines
657 B
Plaintext

== Why is this an issue?
include::../why.adoc[]
== How to fix it
=== Code examples
==== Noncompliant code example
[source,csharp,diff-id=1,diff-type=noncompliant]
----
[Export(typeof(ISomeType))]
public class SomeType // Noncompliant: doesn't implement 'ISomeType'.
{
}
----
==== Compliant solution
[source,csharp,diff-id=1,diff-type=compliant]
----
[Export(typeof(ISomeType))]
public class SomeType : ISomeType
{
}
----
include::../resources.adoc[]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
include::../highlighting.adoc[]
endif::env-github,rspecator-view[]