{"action":"created","issue":{"url":"https://api.github.com/repos/wooorm/alex/issues/44","labels_url":"https://api.github.com/repos/wooorm/alex/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/wooorm/alex/issues/44/comments","events_url":"https://api.github.com/repos/wooorm/alex/issues/44/events","html_url":"https://github.com/wooorm/alex/issues/44","id":107415864,"number":44,"title":"Vim Syntastic Plugin","user":{"login":"chrisopedia","id":5769156,"avatar_url":"https://avatars.githubusercontent.com/u/5769156?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisopedia","html_url":"https://github.com/chrisopedia","followers_url":"https://api.github.com/users/chrisopedia/followers","following_url":"https://api.github.com/users/chrisopedia/following{/other_user}","gists_url":"https://api.github.com/users/chrisopedia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisopedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisopedia/subscriptions","organizations_url":"https://api.github.com/users/chrisopedia/orgs","repos_url":"https://api.github.com/users/chrisopedia/repos","events_url":"https://api.github.com/users/chrisopedia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisopedia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-20T20:26:42Z","updated_at":"2015-09-25T09:55:42Z","closed_at":"2015-09-21T06:51:22Z","body":"I'm trying to write a ViM [syntastic checker](https://github.com/scrooloose/syntastic/wiki/Syntax-Checker-Guide) for Alex and running into some problems with the outputted format.  Is possible to adjust the output to make it friendlier for bash and vim?\r\n\r\nMy suggestion would would mean formatting it something more akin to this:\r\n\r\n```bash\r\n1:5-1:14  warning  `boogeyman` may be insensitive, use `boogey` instead\r\n1:42-1:48  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead\r\n2:52-2:54  warning  `he` may be insensitive, use `they`, `it` instead\r\n2:61-2:68  warning  `cripple` may be insensitive, use `person with a limp` instead\r\n```\r\n\r\ninstead of this:\r\n\r\n```bash\r\n\r\n<stdin>\r\n   1:5-1:14  warning  `boogeyman` may be insensitive, use `boogey` instead\r\n  1:42-1:48  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead\r\n  2:52-2:54  warning  `he` may be insensitive, use `they`, `it` instead\r\n  2:61-2:68  warning  `cripple` may be insensitive, use `person with a limp` instead\r\n\r\n⚠ 4 warnings\r\n```\r\n\r\n**Note:** this means removing the first line and `<stdin>`, left aligning the warnings for easier parsing, and removing the line character and total warning count."},"comment":{"url":"https://api.github.com/repos/wooorm/alex/issues/comments/143175420","html_url":"https://github.com/wooorm/alex/issues/44#issuecomment-143175420","issue_url":"https://api.github.com/repos/wooorm/alex/issues/44","id":143175420,"user":{"login":"lcd047","id":1281736,"avatar_url":"https://avatars.githubusercontent.com/u/1281736?v=3","gravatar_id":"","url":"https://api.github.com/users/lcd047","html_url":"https://github.com/lcd047","followers_url":"https://api.github.com/users/lcd047/followers","following_url":"https://api.github.com/users/lcd047/following{/other_user}","gists_url":"https://api.github.com/users/lcd047/gists{/gist_id}","starred_url":"https://api.github.com/users/lcd047/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcd047/subscriptions","organizations_url":"https://api.github.com/users/lcd047/orgs","repos_url":"https://api.github.com/users/lcd047/repos","events_url":"https://api.github.com/users/lcd047/events{/privacy}","received_events_url":"https://api.github.com/users/lcd047/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T09:55:42Z","updated_at":"2015-09-25T09:55:42Z","body":"> How exactly is it complicated? How does it depend on the line before it?\r\n\r\nThe filenames.  When you see an error line\r\n```\r\n  1:40-1:46  warning  `master` / `slaves` may be insensitive, use `primary` / `replica` instead\r\n```\r\nyou can't tell what file it refers to.  You have to keep track of filenames separately.  Not a _problem_, but still more complicated than it could have been.\r\n\r\n> It was straight forward for me to write a regex for it. Literally took minutes. Syntastic might differ though.\r\n\r\nVim uses a `scanf()`-like system named `errorformat`.  In retrospect, things would have been a lot easier for everybody if syntastic used plain regexps instead, but the `errorformat` thing is what Vim offers out of the box for parsing errors, and I suppose it seemed fine at the time.\r\n\r\n> `--version`  should IMHO be a clean version. You can use `--help` for that.\r\n\r\nWhatever it is, it should provide a way to identify `AlexJS` uniquely."}}