rspec/rules/S1172/apex/rule.adoc

45 lines
692 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:47:33 +02:00
include::../description.adoc[]
== How to fix it
2020-06-30 12:47:33 +02:00
include::../how-to-fix-it.adoc[]
=== Code examples
==== Noncompliant code example
[source,apex,diff-id=1,diff-type=noncompliant]
2020-06-30 12:47:33 +02:00
----
void doSomething(Integer a, Integer b) { // Noncompliant, "b" is unused
2020-06-30 12:47:33 +02:00
compute(a);
}
----
==== Compliant solution
2020-06-30 12:47:33 +02:00
[source,apex,diff-id=1,diff-type=compliant]
2020-06-30 12:47:33 +02:00
----
void doSomething(Integer a) {
compute(a);
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]