rspec/rules/S6035/description_with_reference_to_s5998.adoc
Nils Werner 37e48b527c
Modify rule S6035: Add Python as covered language (#541)
* Modify rule S6035: Add Python as covered language

* Modify rule S6035: Fix description for python and php
2021-10-29 08:27:24 +00:00

2 lines
273 B
Plaintext

When an alternation contains multiple alternatives that consist of a single character, it can be rewritten as a character class. This should be preferred because it is more efficient and can even help prevent stack overflows when used inside a repetition (see rule S5998).