doctor-rst
doctor-rst copied to clipboard
A rule or rule type should be able to configure if the content of the line is shown
Maybe this should be implemented after: https://github.com/OskarStark/doctor-rst/issues/825
Currently we show the line content for all rules/types:
However this makes no sense for the rules introduced in: https://github.com/OskarStark/doctor-rst/pull/824
We should use Line number 0 like now to be able to annotate on Github, but showing the content of this line 0 is confusing.
I think is now possible with the Violation
object. When rawLine
is empty line is not displayed
https://github.com/OskarStark/doctor-rst/blob/d16c1de24fca817d90155b5546713189f7b7603f/src/Formatter/ConsoleFormatter.php#L92-L94