rspec/rules/S5855/description.adoc
Karim El Ouerghemmi 97deb14493
Modify rule S5855: Add PHP as covered language (#317)
* Modify rule S5855: Add PHP as covered language

* Address review comment
2021-09-07 11:36:39 +02:00

6 lines
383 B
Plaintext

If an alternative in a regular expression only matches things that are already matched by another alternative, that alternative is redundant and serves no purpose.
In the best case this means that the offending subpattern is merely redundant and should be removed. In the worst case it's a sign that this regex does not match what it was intended to match and should be reworked.