summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-02-17 20:54:57 +0100
committerGitHub <noreply@github.com>2023-02-17 20:54:57 +0100
commit490c40525c286483e8b7405870a8d2f0ae627de4 (patch)
treecb109148bd5dddf4c0aa857206020a440587ab71 /tests
parente0018ea04bce285f5fed31c00d6d16367a8800c1 (diff)
downloadpylint-git-490c40525c286483e8b7405870a8d2f0ae627de4.tar.gz
[doc] Add an example for 'too-many-locals' (#8306)
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/t/too/too_many_locals.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/functional/t/too/too_many_locals.py b/tests/functional/t/too/too_many_locals.py
index cd37e53cb..34395871d 100644
--- a/tests/functional/t/too/too_many_locals.py
+++ b/tests/functional/t/too/too_many_locals.py
@@ -10,7 +10,7 @@ def function(arg1, arg2, arg3, arg4, arg5): # [too-many-locals]
def too_many_locals_function(): # [too-many-locals]
- """pylint will complains about too many local variables"""
+ """pylint will complain about too many local variables"""
args0 = 0
args1 = args0 * 1
args2 = args1 * 2
@@ -30,7 +30,7 @@ def too_many_locals_function(): # [too-many-locals]
return args15
def too_many_arguments_function(arga, argu, argi, arge, argt, args): # [too-many-arguments]
- """pylint will complains about too many arguments."""
+ """pylint will complain about too many arguments."""
arga = argu
arga += argi
arga += arge
@@ -42,7 +42,7 @@ def ignored_arguments_function(arga, argu, argi,
_arge=0, _argt=1, _args=None):
"""pylint will ignore _arge, _argt, _args.
- Consequently pylint will only coun 13 arguments.
+ Consequently, pylint will only count 13 arguments.
"""
arg0 = 0
arg1 = arg0 * 1 + arga
@@ -62,7 +62,7 @@ def ignored_arguments_function(arga, argu, argi,
def ignored_locals_function():
"""pylint will ignore '_' (an underscore) as a local variable.
- Consequently pylint will only count 15 local variables.
+ Consequently, pylint will only count 15 local variables.
"""
args0 = 0