Skip to content

Commit fdd914a

Browse files
Adjust news/docs from pylint-dev#8813 to use bad-names-rgx
1 parent b4798ae commit fdd914a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/data/messages/i/invalid-name/details.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Before pylint 3.0, most predefined patterns also enforced a minimum length
9999
of three characters. If this behavior is desired in versions 3.0 and following,
100100
it can be had by providing custom regular expressions as described next. (Or,
101101
if the ``disallowed-name`` check is sufficient instead of ``invalid-name``,
102-
providing the single option ``bad-names-rgxs="^..?$"`` will suffice to fail 1-2
102+
providing the single option ``bad-names-rgx="^..?$"`` will suffice to fail 1-2
103103
character names.
104104

105105
Custom regular expressions

doc/whatsnew/fragments/2018.user_action

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ and name length, and users regularly reported this to be surprising.)
55
If checking for a minimum length is still desired, it can be regained in two ways:
66

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

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

0 commit comments

Comments
 (0)