D403
first-line-capitalized lint not alerting when the first line is after a newline
#14890
Labels
bug
Something isn't working
docstring
Related to docstring linting or formatting
help wanted
Contributions especially welcome
My Ruff version is 0.8.2.
When using
first-line-capitalized (D403)
in conjunction withmulti-line-summary-second-line (D213)
ruff fails to alert about the first line missing capitalization:
The ruff output is :
I think the correct action would be to alert the user about the missing capitalization since the lint is basically useless when using
D213
.Moreover, and most importantly, this is a deviation from how pydocstyle works, from which both of those alerts are
derived.
pydocstyle:
If this change is accepted I think there are merits to renaming
first-line-capitalized (D403)
to something like
docstring-start-capitalized
to avoid confusion withmulti-line-summary-second-line (D213)
and
multi-line-summary-first-line (D212)
which are all derived from pydocstyle.The text was updated successfully, but these errors were encountered: