rspec/rules/S2253/rule.adoc

20 lines
314 B
Plaintext

== Why is this an issue?
This rule allows banning certain methods.
=== Noncompliant code example
Given parameters:
* className:java.lang.String
* methodName: replace
* argumentTypes: java.lang.CharSequence, java.lang.CharSequence
[source,text]
----
String name;
name.replace("A","a"); // Noncompliant
----