{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4","id":64047556,"html_url":"https://github.com/wfleming/vim-codeclimate/pull/4","diff_url":"https://github.com/wfleming/vim-codeclimate/pull/4.diff","patch_url":"https://github.com/wfleming/vim-codeclimate/pull/4.patch","issue_url":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/4","number":4,"state":"open","locked":false,"title":"Issue #3: Issue with line numbers","user":{"login":"sysadmiral","id":5868863,"avatar_url":"https://avatars.githubusercontent.com/u/5868863?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmiral","html_url":"https://github.com/sysadmiral","followers_url":"https://api.github.com/users/sysadmiral/followers","following_url":"https://api.github.com/users/sysadmiral/following{/other_user}","gists_url":"https://api.github.com/users/sysadmiral/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmiral/subscriptions","organizations_url":"https://api.github.com/users/sysadmiral/orgs","repos_url":"https://api.github.com/users/sysadmiral/repos","events_url":"https://api.github.com/users/sysadmiral/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmiral/received_events","type":"User","site_admin":false},"body":"When you run the vim-codeclimate commands the line numbers don't\r\ncorrespond to the codeclimate CLI output (turns out they were being\r\ntrimmed to first char).\r\n\r\nThe issue is with the regex and in particular the hyphen in the regex\r\nwhich I think is being interpreted as a range. Putting it in a character\r\nset solves the problem.\r\n\r\nI haven't been throught the code cliamte code but I tried running the\r\ncli in a number of scenarios and I only ever got output for line numbers\r\nthat fit on of the following forms:\r\n\r\n* 000(n)\r\n* 000(n)-000(n)\r\n\r\nI didn't ever get the equals sign to appear but I've included that in\r\nthe character set.\r\n\r\nIf the CLI output can ever be any other output form then this regex will\r\nneed revisiting.\r\n\r\nAny questions let me know.\r\n\r\nCheers,\r\n\r\nAmo\r\n@sysadmiral","created_at":"2016-03-24T15:08:28Z","updated_at":"2016-03-24T15:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4/commits","review_comments_url":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4/comments","review_comment_url":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/4/comments","statuses_url":"https://api.github.com/repos/wfleming/vim-codeclimate/statuses/79fbc6db8ef0e3d66b1ab445d93fb7d5ae308fae","head":{"label":"sysadmiral:master","ref":"master","sha":"79fbc6db8ef0e3d66b1ab445d93fb7d5ae308fae","user":{"login":"sysadmiral","id":5868863,"avatar_url":"https://avatars.githubusercontent.com/u/5868863?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmiral","html_url":"https://github.com/sysadmiral","followers_url":"https://api.github.com/users/sysadmiral/followers","following_url":"https://api.github.com/users/sysadmiral/following{/other_user}","gists_url":"https://api.github.com/users/sysadmiral/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmiral/subscriptions","organizations_url":"https://api.github.com/users/sysadmiral/orgs","repos_url":"https://api.github.com/users/sysadmiral/repos","events_url":"https://api.github.com/users/sysadmiral/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmiral/received_events","type":"User","site_admin":false},"repo":{"id":54648936,"name":"vim-codeclimate","full_name":"sysadmiral/vim-codeclimate","owner":{"login":"sysadmiral","id":5868863,"avatar_url":"https://avatars.githubusercontent.com/u/5868863?v=3","gravatar_id":"","url":"https://api.github.com/users/sysadmiral","html_url":"https://github.com/sysadmiral","followers_url":"https://api.github.com/users/sysadmiral/followers","following_url":"https://api.github.com/users/sysadmiral/following{/other_user}","gists_url":"https://api.github.com/users/sysadmiral/gists{/gist_id}","starred_url":"https://api.github.com/users/sysadmiral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sysadmiral/subscriptions","organizations_url":"https://api.github.com/users/sysadmiral/orgs","repos_url":"https://api.github.com/users/sysadmiral/repos","events_url":"https://api.github.com/users/sysadmiral/events{/privacy}","received_events_url":"https://api.github.com/users/sysadmiral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sysadmiral/vim-codeclimate","description":"A vim plugin that runs the Code Climate CLI & displays the results in vim.","fork":true,"url":"https://api.github.com/repos/sysadmiral/vim-codeclimate","forks_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/forks","keys_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/teams","hooks_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/hooks","issue_events_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/issues/events{/number}","events_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/events","assignees_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/assignees{/user}","branches_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/branches{/branch}","tags_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/tags","blobs_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/git/refs{/sha}","trees_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/statuses/{sha}","languages_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/languages","stargazers_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/stargazers","contributors_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/contributors","subscribers_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/subscribers","subscription_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/subscription","commits_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/commits{/sha}","git_commits_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/git/commits{/sha}","comments_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/comments{/number}","issue_comment_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/issues/comments{/number}","contents_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/contents/{+path}","compare_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/merges","archive_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/downloads","issues_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/issues{/number}","pulls_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/pulls{/number}","milestones_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/milestones{/number}","notifications_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/labels{/name}","releases_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/releases{/id}","deployments_url":"https://api.github.com/repos/sysadmiral/vim-codeclimate/deployments","created_at":"2016-03-24T14:38:53Z","updated_at":"2016-03-24T14:38:54Z","pushed_at":"2016-03-24T15:07:22Z","git_url":"git://github.com/sysadmiral/vim-codeclimate.git","ssh_url":"git@github.com:sysadmiral/vim-codeclimate.git","clone_url":"https://github.com/sysadmiral/vim-codeclimate.git","svn_url":"https://github.com/sysadmiral/vim-codeclimate","homepage":"","size":8,"stargazers_count":0,"watchers_count":0,"language":"VimL","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wfleming:master","ref":"master","sha":"9716ddee5698d1ce4f1885dee332ba895ede2387","user":{"login":"wfleming","id":188402,"avatar_url":"https://avatars.githubusercontent.com/u/188402?v=3","gravatar_id":"","url":"https://api.github.com/users/wfleming","html_url":"https://github.com/wfleming","followers_url":"https://api.github.com/users/wfleming/followers","following_url":"https://api.github.com/users/wfleming/following{/other_user}","gists_url":"https://api.github.com/users/wfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/wfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfleming/subscriptions","organizations_url":"https://api.github.com/users/wfleming/orgs","repos_url":"https://api.github.com/users/wfleming/repos","events_url":"https://api.github.com/users/wfleming/events{/privacy}","received_events_url":"https://api.github.com/users/wfleming/received_events","type":"User","site_admin":false},"repo":{"id":51222769,"name":"vim-codeclimate","full_name":"wfleming/vim-codeclimate","owner":{"login":"wfleming","id":188402,"avatar_url":"https://avatars.githubusercontent.com/u/188402?v=3","gravatar_id":"","url":"https://api.github.com/users/wfleming","html_url":"https://github.com/wfleming","followers_url":"https://api.github.com/users/wfleming/followers","following_url":"https://api.github.com/users/wfleming/following{/other_user}","gists_url":"https://api.github.com/users/wfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/wfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfleming/subscriptions","organizations_url":"https://api.github.com/users/wfleming/orgs","repos_url":"https://api.github.com/users/wfleming/repos","events_url":"https://api.github.com/users/wfleming/events{/privacy}","received_events_url":"https://api.github.com/users/wfleming/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wfleming/vim-codeclimate","description":"A vim plugin that runs the Code Climate CLI & displays the results in vim.","fork":false,"url":"https://api.github.com/repos/wfleming/vim-codeclimate","forks_url":"https://api.github.com/repos/wfleming/vim-codeclimate/forks","keys_url":"https://api.github.com/repos/wfleming/vim-codeclimate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wfleming/vim-codeclimate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wfleming/vim-codeclimate/teams","hooks_url":"https://api.github.com/repos/wfleming/vim-codeclimate/hooks","issue_events_url":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/events{/number}","events_url":"https://api.github.com/repos/wfleming/vim-codeclimate/events","assignees_url":"https://api.github.com/repos/wfleming/vim-codeclimate/assignees{/user}","branches_url":"https://api.github.com/repos/wfleming/vim-codeclimate/branches{/branch}","tags_url":"https://api.github.com/repos/wfleming/vim-codeclimate/tags","blobs_url":"https://api.github.com/repos/wfleming/vim-codeclimate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wfleming/vim-codeclimate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wfleming/vim-codeclimate/git/refs{/sha}","trees_url":"https://api.github.com/repos/wfleming/vim-codeclimate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wfleming/vim-codeclimate/statuses/{sha}","languages_url":"https://api.github.com/repos/wfleming/vim-codeclimate/languages","stargazers_url":"https://api.github.com/repos/wfleming/vim-codeclimate/stargazers","contributors_url":"https://api.github.com/repos/wfleming/vim-codeclimate/contributors","subscribers_url":"https://api.github.com/repos/wfleming/vim-codeclimate/subscribers","subscription_url":"https://api.github.com/repos/wfleming/vim-codeclimate/subscription","commits_url":"https://api.github.com/repos/wfleming/vim-codeclimate/commits{/sha}","git_commits_url":"https://api.github.com/repos/wfleming/vim-codeclimate/git/commits{/sha}","comments_url":"https://api.github.com/repos/wfleming/vim-codeclimate/comments{/number}","issue_comment_url":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/comments{/number}","contents_url":"https://api.github.com/repos/wfleming/vim-codeclimate/contents/{+path}","compare_url":"https://api.github.com/repos/wfleming/vim-codeclimate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wfleming/vim-codeclimate/merges","archive_url":"https://api.github.com/repos/wfleming/vim-codeclimate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wfleming/vim-codeclimate/downloads","issues_url":"https://api.github.com/repos/wfleming/vim-codeclimate/issues{/number}","pulls_url":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls{/number}","milestones_url":"https://api.github.com/repos/wfleming/vim-codeclimate/milestones{/number}","notifications_url":"https://api.github.com/repos/wfleming/vim-codeclimate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wfleming/vim-codeclimate/labels{/name}","releases_url":"https://api.github.com/repos/wfleming/vim-codeclimate/releases{/id}","deployments_url":"https://api.github.com/repos/wfleming/vim-codeclimate/deployments","created_at":"2016-02-06T21:25:56Z","updated_at":"2016-03-23T14:39:05Z","pushed_at":"2016-03-24T15:08:28Z","git_url":"git://github.com/wfleming/vim-codeclimate.git","ssh_url":"git@github.com:wfleming/vim-codeclimate.git","clone_url":"https://github.com/wfleming/vim-codeclimate.git","svn_url":"https://github.com/wfleming/vim-codeclimate","homepage":"","size":7,"stargazers_count":8,"watchers_count":8,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4"},"html":{"href":"https://github.com/wfleming/vim-codeclimate/pull/4"},"issue":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/4"},"comments":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/wfleming/vim-codeclimate/statuses/79fbc6db8ef0e3d66b1ab445d93fb7d5ae308fae"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":1,"deletions":1,"changed_files":1}}