Skip to content

Commit

Permalink
Adjust news/docs from #8813 to use bad-names-rgx
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jul 29, 2023
1 parent b4798ae commit fdd914a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/data/messages/i/invalid-name/details.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Before pylint 3.0, most predefined patterns also enforced a minimum length
of three characters. If this behavior is desired in versions 3.0 and following,
it can be had by providing custom regular expressions as described next. (Or,
if the ``disallowed-name`` check is sufficient instead of ``invalid-name``,
providing the single option ``bad-names-rgxs="^..?$"`` will suffice to fail 1-2
providing the single option ``bad-names-rgx="^..?$"`` will suffice to fail 1-2
character names.

Custom regular expressions
Expand Down
2 changes: 1 addition & 1 deletion doc/whatsnew/fragments/2018.user_action
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ and name length, and users regularly reported this to be surprising.)
If checking for a minimum length is still desired, it can be regained in two ways:

- If you are content with a ``disallowed-name`` message (instead of ``invalid-name``),
then simply add the option ``bad-names-rgxs="^..?$"``, which will fail 1-2
then simply add the option ``bad-names-rgx="^..?$"``, which will fail 1-2
character-long names. (Ensure you enable ``disallowed-name``.)

- If you would prefer an ``invalid-name`` message to be emitted, or would prefer
Expand Down

0 comments on commit fdd914a

Please sign in to comment.