有沒有辦法在PyLint中配置bad-whitespace
檢查的檢查?我目前可以禁用檢查,但我寧願強制執行一個空白約定而不是禁用它。PyLint bad-whitespace配置
2
A
回答
0
有兩個選項可以使用:
在全球範圍內禁止壞空白警告:
pylint --disable=C0326
使用pylint的配置文件:
pylint --rcfile=/path/to/config.file
這是你放什麼在配置文件中禁用壞空白警告:
disable=C0326
0
從pylint 1.1.0開始,bad-whitespace
約定檢查的編號爲C0326
。您可以在.pylintrc配置文件中使用此代碼來啓用/禁用bad-whitespace
檢查。
[MESSAGES CONTROL]
enable=C0326
或
[MESSAGES CONTROL]
disable=C0326
1
的.pylintrc文件時提供的空白規則有限的編輯,使用屬性no-space-check
:
# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a,).
# `empty-line` allows space-only lines.
no-space-check=
可能在不久的將來更多的選擇,雖然。
相關問題
- 1. 爲Django項目配置Pylint
- 2. pylint的評價配置
- 3. 用PyDev設置Pylint
- 4. 如何爲Visual Studio 2015添加pylint配置文件?
- 5. 如何在windows下爲pylint指定一個配置文件?
- 6. 爲什麼Pylint不像內置函數?
- 7. pylint的抱怨
- 8. pythonVSCode,venv和pylint
- 9. Pylint和python
- 10. pylint wingIDE不工作
- 11. 着色PyLint輸出?
- 12. Pylint E1103假陽性?
- 13. PyLint最佳實踐?
- 14. 讓Eclipse識別Pylint「pylint.rc」文件
- 15. 如何禁用pylint中的「TODO」警告?
- 16. Pylint W0212保護訪問
- 17. Pylint。如何禁用圖形?
- 18. 導入失敗的pylint
- 19. 短絨pylint的未安裝
- 20. pylint超類錯誤__init__
- 21. pylint的安裝失敗
- 22. Pylint依賴項錯誤
- 23. pylint的不喜歡pkg_resources.resource_filename
- 24. 讓Pylint關心空白行
- 25. Pylint:禁用子類的警告
- 26. 如何使用pylint的在vim
- 27. django在.vimrc html合成配置
- 28. emacs:python設置縮進標籤(與pylint,autopep8,flycheck等問題)
- 29. 根據pylint插件的參數設置多個推斷類型
- 30. 如何設置Pylint只做一些檢查