Bic*_*ops 10 python pylint pylintrc
我正在查看我的RC文件,我不能为我的生活,找到这些变量中的哪一个禁用该功能.
我搜索了"if","else"和"return",我什么也没看到.除非我错过了.
谢谢.
更多信息
pylint 1.7.2,
astroid 1.5.3
Python 2.7.10 (default, Jul 30 2016, 18:31:42)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
Run Code Online (Sandbox Code Playgroud)
我把什么放进了终端
pylint --rcfile=.pylintrc Test.py
Run Code Online (Sandbox Code Playgroud)
测试代码
""" Module Docstring """
def IS_POSITIVE(number):
""" detects positive """
if number > 0:
return "+++"
else:
return "---"
print IS_POSITIVE(3)
Run Code Online (Sandbox Code Playgroud)
打印出来
************* Module Test
R: 27, 4: Unnecessary "else" after "return" (no-else-return)
------------------------------------------------------------------
Your code has been rated at 8.00/10 (previous run: 8.00/10, +0.00)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4906 次 |
| 最近记录: |