Add exception to WPS226 to allow commas and dots #2209
Labels
good first issue
Entrypoint to the project
Hacktoberfest
Hactoberfest fun!
help wanted
Extra attention is needed
level:starter
Good for newcomers
rule request
Adding a new rule
Milestone
Rule request
I suggest adding comma
,
and dot.
to the list of allowed exceptions for WPS226Thesis
Forcing defining a constant for dot and comma strings worsen the code readability without need.
Reasoning
It is a classical pattern to build a sentence with the code like:
It feels unnatural to define a constant (e.g. DOT, COMMA) for such obvious case.
Besides that the check WPS226 looks good. I don't like disabling it or increasing the number of string occurrences.
This extends the idea in #1534
The text was updated successfully, but these errors were encountered: