问题描述
我刚刚在 vscode 中设置了默认的 pylint linter,但我没有收到例如关于文档字符串的消息。也许我还错过了来自 linter 的其他一些通知。 https://code.visualstudio.com/docs/languages/python#_linting
Screnshoot from vscode documentation showing linter message
在哪里可以选择启用和禁用哪些消息?我试过查看设置但没有成功。
解决方法
好吧,我找到了解决方案。 必须在 Settings > Python › Linting: Pylint Args 中添加 args https://code.visualstudio.com/docs/python/linting#_default-pylint-rules
现在我启用了所有消息
--enable=all
稍后实验