fn check_mixed_case(
s: &str,
is_fn: bool,
allowed_patterns: &[String],
) -> Option<String>Expand description
If the string s is not mixedCase, returns a Some(String) with the
suggested conversion. Otherwise, returns None.
To avoid false positives:
- lowercase strings like
fn increment()oruint256 counter, are treated as mixedCase. - test functions starting with
test,invariant_orstatefulFuzzare ignored. - user-defined patterns like
ERC20are allowed.