{"action":"opened","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-flake8/issues/19","labels_url":"https://api.github.com/repos/AtomLinter/linter-flake8/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-flake8/issues/19/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-flake8/issues/19/events","html_url":"https://github.com/AtomLinter/linter-flake8/issues/19","id":60037884,"number":19,"title":"Add a \"select\" field in settings to include codes skipped by default","user":{"login":"ChaoticMind","id":395384,"avatar_url":"https://avatars.githubusercontent.com/u/395384?v=3","gravatar_id":"","url":"https://api.github.com/users/ChaoticMind","html_url":"https://github.com/ChaoticMind","followers_url":"https://api.github.com/users/ChaoticMind/followers","following_url":"https://api.github.com/users/ChaoticMind/following{/other_user}","gists_url":"https://api.github.com/users/ChaoticMind/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaoticMind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaoticMind/subscriptions","organizations_url":"https://api.github.com/users/ChaoticMind/orgs","repos_url":"https://api.github.com/users/ChaoticMind/repos","events_url":"https://api.github.com/users/ChaoticMind/events{/privacy}","received_events_url":"https://api.github.com/users/ChaoticMind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-06T00:04:47Z","updated_at":"2015-03-06T00:04:47Z","closed_at":null,"body":"The error codes that are skipped by pep8 by default (marked with '*' in the list [here](http://pep8.readthedocs.org/en/latest/intro.html#error-codes -- see note after the table) are also skipped by default in linter-flake8. \r\n\r\nThey are also skipped in flake8 (and of course in pep8). To include them, one has to run pep8 (or flake8) with the parameters \"--select E, W\". This is not currently possible in linter-flake8.\r\n\r\nA workaround is to add a junk value to the 'ignore error codes' field (e.g. 'ignore_me') because it seems that the error codes are actually included if there is anything at all being explicitely ignored. One can argue this is an upstream bug, but it is actually helpful in providing us with a workaround.\r\n\r\nie, if one runs (even in the original pep8): \"pep8 --ignore test_param_plz_ignore\", then the aforementioned codes are not ignored anymore. \r\nThe ignore-by-default behavior also doesn't happen if some other non-junk code is being explicitely ignored (e.g. W191).\r\n\r\nTo recap: pep8 (and flake8 and therefore linter-flake8) ignore certain error codes by default. The way to solve it is:\r\n* pass \"--select E, W\" (or the specific code). This is not possible with linter-flake8, but should be.\r\n\r\nA workaround is:\r\n* pass \"--ignore W191\" (or any other valid code). Then the default codes won't be ignored anymore\r\n* pass \"--ignore junk_value\". This works if we don't want to ignore anything but still want to include all the codes.\r\n"}}