rspec/rules/S4290/rule.adoc

21 lines
563 B
Plaintext
Raw Normal View History

2020-06-30 12:49:37 +02:00
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
----