◐ Shell
clean mode source ↗

expr: Handle more special cases for regex pattern by frendsick · Pull Request #7974 · uutils/coreutils

What should I do with the test_regex function that is failing the clippy::too_many_lines lint from clippy::pedantic? Should it be allowed to have more lines, as the nature of the current function is that it contains many regex tests, or should it be refactored to smaller test functions for each tested use case? Of course, one use case can have multiple new_ucmd tests, like testing special cases with parsing the $ character.