summaryrefslogtreecommitdiff
path: root/doc/user_guide
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-11-14 10:17:12 +0100
committerGitHub <noreply@github.com>2022-11-14 10:17:12 +0100
commitff3531b874fa5997ef602171e0882ad7fcdac9f3 (patch)
treef502441bb9d5bff14427471f958b3bc3871d2eec /doc/user_guide
parentbed42badfe6be6317e6dc6406433218287ded3b9 (diff)
downloadpylint-git-ff3531b874fa5997ef602171e0882ad7fcdac9f3.tar.gz
Add named-expr-without-context check (#7763)
Diffstat (limited to 'doc/user_guide')
-rw-r--r--doc/user_guide/checkers/features.rst3
-rw-r--r--doc/user_guide/messages/messages_overview.rst1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/user_guide/checkers/features.rst b/doc/user_guide/checkers/features.rst
index a7926b7af..974e1fa30 100644
--- a/doc/user_guide/checkers/features.rst
+++ b/doc/user_guide/checkers/features.rst
@@ -135,6 +135,9 @@ Basic checker Messages
argument list as the lambda itself; such lambda expressions are in all but a
few cases replaceable with the function being called in the body of the
lambda.
+:named-expr-without-context (W0131): *Named expression used without context*
+ Emitted if named expression is used to do a regular assignment outside a
+ context like if, for, while, or a comprehension.
:redeclared-assigned-name (W0128): *Redeclared variable %r in assignment*
Emitted when we detect that a variable was redeclared in the same assignment.
:pointless-statement (W0104): *Statement seems to have no effect*
diff --git a/doc/user_guide/messages/messages_overview.rst b/doc/user_guide/messages/messages_overview.rst
index a5d2a3b12..bab18aad7 100644
--- a/doc/user_guide/messages/messages_overview.rst
+++ b/doc/user_guide/messages/messages_overview.rst
@@ -277,6 +277,7 @@ All messages in the warning category:
warning/missing-yield-type-doc
warning/modified-iterating-list
warning/multiple-constructor-doc
+ warning/named-expr-without-context
warning/nan-comparison
warning/non-ascii-file-name
warning/non-parent-init-called