为什么pylint会自我评估?
Why does pylint assess itself?
我正在尝试 运行 对我的烧瓶应用程序进行 pylint。
我生成了默认的pylint配置文件。
当我运行这个命令时:
(newedgeuiv) Callams-MacBook-Pro:api callam$ pylint pylint --load-plugins pylint_flask --confidence="HIGH" api/
Pylint 从自我评估开始……如下所示:
************* Module pylint
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.__main__
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.config
C: 55, 0: Missing function docstring (missing-docstring)
C: 68, 0: Missing function docstring (missing-docstring)
C:263, 0: Missing class docstring (missing-docstring)
C:311, 0: Missing class docstring (missing-docstring)
C:615,12: Invalid argument name "p" (invalid-name)
C:615,12: Missing function docstring (missing-docstring)
C:633,68: Invalid variable name "fp" (invalid-name)
************* Module pylint.epylint
C:163, 0: Missing function docstring (missing-docstring)
************* Module pylint.lint
C:196, 4: Missing class docstring (missing-docstring)
C:1086,16: Invalid variable name "cb" (invalid-name)
C:1354, 0: Missing function docstring (missing-docstring)
************* Module pylint.testutils
C: 42, 0: Missing function docstring (missing-docstring)
如何确保 pylint 只检查我编写的代码?
你要求它这样做。你的命令中有一个无关的 pylint,你有 pylint pylint api/
我正在尝试 运行 对我的烧瓶应用程序进行 pylint。 我生成了默认的pylint配置文件。
当我运行这个命令时:
(newedgeuiv) Callams-MacBook-Pro:api callam$ pylint pylint --load-plugins pylint_flask --confidence="HIGH" api/
Pylint 从自我评估开始……如下所示:
************* Module pylint
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.__main__
C: 1, 0: Missing module docstring (missing-docstring)
************* Module pylint.config
C: 55, 0: Missing function docstring (missing-docstring)
C: 68, 0: Missing function docstring (missing-docstring)
C:263, 0: Missing class docstring (missing-docstring)
C:311, 0: Missing class docstring (missing-docstring)
C:615,12: Invalid argument name "p" (invalid-name)
C:615,12: Missing function docstring (missing-docstring)
C:633,68: Invalid variable name "fp" (invalid-name)
************* Module pylint.epylint
C:163, 0: Missing function docstring (missing-docstring)
************* Module pylint.lint
C:196, 4: Missing class docstring (missing-docstring)
C:1086,16: Invalid variable name "cb" (invalid-name)
C:1354, 0: Missing function docstring (missing-docstring)
************* Module pylint.testutils
C: 42, 0: Missing function docstring (missing-docstring)
如何确保 pylint 只检查我编写的代码?
你要求它这样做。你的命令中有一个无关的 pylint,你有 pylint pylint api/