Open goerz opened 3 weeks ago
Good news! I'm already doing this :wink:
The current set of rules checks that:
It is often the case that the summary statement of a function needs more than one sentence. Many of my docstrings would fail the last bullet point simply because it is not possible to articulate clearly a compelx function ina single sentence. What do we do in such a scenario?
(my summary sentences are at the moment always after the signature code block)
I'd actually argue that if the (high-level) purpose of a function can't be articulated in a single line, that function shouldn't exist 😛
As someone who's had plenty of issues with length-limited summary lines though (in Emacs, where the limit is 80), I most often find the real issue is that I've tried to squeeze too much detail into the summary.
Just throwing this out there, from "Docstrings: Imperative or indicative mood" (comment):
I would like a docstring linter to be able to check for summary lines, either after the signature (as the Julia manual recommends), or before the signature (my personal style).
For the latter, it would be extra nice to be able to enforce that the summary is written in the imperative style, but the text from the codeblock onwards is written in the descriptive style.