{"action":"created","issue":{"url":"https://api.github.com/repos/w0rp/ale/issues/333","repository_url":"https://api.github.com/repos/w0rp/ale","labels_url":"https://api.github.com/repos/w0rp/ale/issues/333/labels{/name}","comments_url":"https://api.github.com/repos/w0rp/ale/issues/333/comments","events_url":"https://api.github.com/repos/w0rp/ale/issues/333/events","html_url":"https://github.com/w0rp/ale/issues/333","id":207070666,"number":333,"title":"Only run some linters when files are saved","user":{"login":"w0rp","id":3518142,"avatar_url":"https://avatars.githubusercontent.com/u/3518142?v=3","gravatar_id":"","url":"https://api.github.com/users/w0rp","html_url":"https://github.com/w0rp","followers_url":"https://api.github.com/users/w0rp/followers","following_url":"https://api.github.com/users/w0rp/following{/other_user}","gists_url":"https://api.github.com/users/w0rp/gists{/gist_id}","starred_url":"https://api.github.com/users/w0rp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w0rp/subscriptions","organizations_url":"https://api.github.com/users/w0rp/orgs","repos_url":"https://api.github.com/users/w0rp/repos","events_url":"https://api.github.com/users/w0rp/events{/privacy}","received_events_url":"https://api.github.com/users/w0rp/received_events","type":"User","site_admin":false},"labels":[{"id":439268498,"url":"https://api.github.com/repos/w0rp/ale/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":439268499,"url":"https://api.github.com/repos/w0rp/ale/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-12T19:08:05Z","updated_at":"2017-02-12T22:26:45Z","closed_at":null,"body":"I have opened a branch for supporting an option for only running some linters if they are configure to only run when files are saved. See the diff here: https://github.com/w0rp/ale/commit/7726c0f07badd9ee12b914105ef76744b3d5e29a\r\n\r\nI believe some linters might only work properly if they are run on precisely the file on disk you are editing. Preferably, it will be possible to check a file with a tool before changes have been saved to disk, and most linters should be implemented this way. However, it is possible that some tools just won't work that way, no matter how hard you try.\r\n\r\nI'm considering setting some linters, notably `pylint`, so they will only run when files are saved, maybe also when files are opened and the file is readable. (The option could be named `lint_from_disk_only`, or something else if someone can come up with a better name, if that's the behaviour.) The commit above has a quick example of what the behaviour might be like.\r\n\r\nWhat do others think of this idea?"},"comment":{"url":"https://api.github.com/repos/w0rp/ale/issues/comments/279256122","html_url":"https://github.com/w0rp/ale/issues/333#issuecomment-279256122","issue_url":"https://api.github.com/repos/w0rp/ale/issues/333","id":279256122,"user":{"login":"raggi","id":348,"avatar_url":"https://avatars.githubusercontent.com/u/348?v=3","gravatar_id":"","url":"https://api.github.com/users/raggi","html_url":"https://github.com/raggi","followers_url":"https://api.github.com/users/raggi/followers","following_url":"https://api.github.com/users/raggi/following{/other_user}","gists_url":"https://api.github.com/users/raggi/gists{/gist_id}","starred_url":"https://api.github.com/users/raggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raggi/subscriptions","organizations_url":"https://api.github.com/users/raggi/orgs","repos_url":"https://api.github.com/users/raggi/repos","events_url":"https://api.github.com/users/raggi/events{/privacy}","received_events_url":"https://api.github.com/users/raggi/received_events","type":"User","site_admin":false},"created_at":"2017-02-12T22:26:45Z","updated_at":"2017-02-12T22:26:45Z","body":"Makes sense, and it's actually how I'd like to run all my linters. I actually disagree with it being preferrable to lint before save. I have probably more reasons than I can immediately enumerate, but the most important that comes to mind is that when I save, I expect: a) the work is recoverable, and that it becoming recoverable is not interrupted by anything but major system problems, b) i have more things watching for saves than linters. As an example, my current preferred setup is to have outboard test executors, and inboard asynchronous linters. Not everyone will agree, but this is my position."}}
{"actor":{"display_login":"raggi"}}