rspec/rules/S4290/rule.adoc
2020-06-30 17:16:12 +02:00

21 lines
563 B
Plaintext

It can be useful to use in-code notation to suppress issues, but when those suppressions are no longer relevant they become a potential source of confusion and should be removed.
== Noncompliant Code Example
----
@SuppressWarnings("squid:S4174") // Noncompliant
public void doSomething() {
final int LOCAL = 42; // S4174 is about naming of local constants but there's nothing wrong here
----
== Compliant Solution
----
public void doSomething() {
final int LOCAL = 42; // S4174 is about naming of local constants but there's nothing wrong here
----