Pythonではインデントにスペース2つ派なので、「スペースを4つ使え!」という警告は非常にうざったい。
これを消すためには、SublimeLinter.sublime-settingsに以下のように書けば良い。
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// SublimeLinter Settings - User { "debug": true, "linters": { "flake8": { "@disable": false, "source": "source.py", "args": ["--ignore=E111, E114"], "enable": "style", "excludes": [], } }, } |
具体的に無視する規約の種類(上の例でいうE111とかE114)は、警告が出てきた箇所にマウスをホバーすれば警告文とともに表示されているはずだ。
Hi, I got the update of SublimeLinter on ST3 today, restarted ST and then SublimeLinter stopped working properly. I have some ignore rules for Python Flake8, but it looks like SublimeLinter stopped... Flake8 ignore rules stopped working on SublimeLinter 4 · Issue #1050 · Sublim... - GitHub |