Skip to content

Commit

Permalink
In "Messages Overview", show the bad_code first
Browse files Browse the repository at this point in the history
It makes more sense to _first define the problem_, then solve it.

Mentions issue pylint-dev#7143

Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com>
  • Loading branch information
stdedos committed Jul 11, 2022
1 parent a359796 commit 4036736
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/exts/pylint_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ def _generate_single_message_body(message: MessageData) -> str:
*{message.definition.description}*
{message.good_code}
{message.bad_code}
{message.good_code}
{message.details}
{message.related_links}
"""
Expand Down
4 changes: 4 additions & 0 deletions doc/whatsnew/2/2.15/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ Other Changes

Closes #6953

* In Documentation, in "Messages Overview", show the `bad_code` first (instead of showing the correct code first)

Refs #7143


Internal changes
================
Expand Down

0 comments on commit 4036736

Please sign in to comment.