0

这是由 LiCLipse 运行的命令

PyLint: Executing command line: /usr/local/bin/pylint --rcfile=.pylintrc /Users/yogibear/google-python-exercises/basic/string2.py   

这是我用来在 LiCLipse 中添加 pylint 配置文件的选项。我正在使用最新版本的 LiClipse。相对路径。

 --rcfile=.pylintrc

该文件的内容是

[FORMAT]
ident-string='  '

rcfile 的路径是:

/Users/yogibear/google-python-exercises/basic/.pylintrc

它似乎没有检测到该文件,因为它仍然抱怨我的 python 源代码文件有 2 个选项卡?

我已将 pylint 配置文件命名为“.pylintrc”。

文件的绝对路径有效。只是当我只指定文件名时,它找不到它。为什么相对路径不起作用?eclipse pydev 中的项目根是什么?

pylint 的新手,所以不确定发生了什么。

4

1 回答 1

0

PyLint 始终在项目根目录中运行,因此,对于--rcfile=.pylintrc.pylintrc文件必须位于项目根目录中(紧邻.project.pydevproject)。

于 2017-04-11T19:08:06.783 回答