{"action":"created","issue":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/1438","labels_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1438/labels{/name}","comments_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1438/comments","events_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1438/events","html_url":"https://github.com/scrooloose/syntastic/issues/1438","id":84720836,"number":1438,"title":"JSCS not showing errors","user":{"login":"mhartington","id":2835826,"avatar_url":"https://avatars.githubusercontent.com/u/2835826?v=3","gravatar_id":"","url":"https://api.github.com/users/mhartington","html_url":"https://github.com/mhartington","followers_url":"https://api.github.com/users/mhartington/followers","following_url":"https://api.github.com/users/mhartington/following{/other_user}","gists_url":"https://api.github.com/users/mhartington/gists{/gist_id}","starred_url":"https://api.github.com/users/mhartington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhartington/subscriptions","organizations_url":"https://api.github.com/users/mhartington/orgs","repos_url":"https://api.github.com/users/mhartington/repos","events_url":"https://api.github.com/users/mhartington/events{/privacy}","received_events_url":"https://api.github.com/users/mhartington/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-06-03T18:58:44Z","updated_at":"2015-06-04T00:02:09Z","closed_at":"2015-06-03T21:01:31Z","body":"Getting an odd issue where if I have jscs enabled for a project, it won't show any errors in the sidebar.\r\n\r\n![screen shot 2015-06-03 at 11 48 46 am](https://cloud.githubusercontent.com/assets/2835826/7968655/f49b7974-09e6-11e5-9dbc-39d200cbbb52.png)\r\n\r\nSo `function(chat )` should produce an error because of the space before the closing paren, but it's not (the error shown is from eslint, just to make sure that syntastic is configured correctly)\r\n\r\nIf I run jscs from the command line, then I get the correct error \r\n\r\n```bash\r\nIllegal space before closing round bracket at input :\r\n    13 |\r\n    14 |  $scope.chats = Chats.all();\r\n    15 |  $scope.remove = function(chat ) {\r\n---------------------------------------^\r\n    16 |    Chats.remove(chat)\r\n    17 |  };\r\n\r\n\r\n1 code style error found.\r\n```\r\nHere is my syntastic config. \r\n\r\n\r\n```viml\r\n  set statusline+=%#warningmsg#\r\n  set statusline+=%{SyntasticStatuslineFlag()}\r\n  set statusline+=%*\r\n  let b:syntastic_checkers = ['jscs', 'eslint']\r\n  let g:syntastic_check_on_open = 0\r\n  let g:syntastic_always_populate_loc_list = 1\r\n  let g:syntastic_auto_loc_list = 1\r\n  let g:syntastic_check_on_wq = 1\r\n\r\n  function! JscsFix()\r\n      let l:winview = winsaveview()\r\n      % ! jscs -x\r\n      call winrestview(l:winview)\r\n  endfunction\r\n  command JscsFix :call JscsFix()\r\n\r\n  noremap <leader>f :JscsFix<CR>\r\n\r\n  let g:syntastic_mode_map = { 'passive_filetypes': ['sass', 'scss','html'] }\r\n  map <Leader>e :lnext<CR>\r\n  map <Leader>E :lprev<CR>\r\n```\r\n\r\n\r\n\r\nI have jscs 1.13.1 and a correct jscsrc file. \r\nOSX 10.10.3\r\nVim inside of Iterm\r\n\r\nIs this an issue with syntastic or should I report this to the jscs repo? Let me know what other information you might need.\r\n"},"comment":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/comments/108651651","html_url":"https://github.com/scrooloose/syntastic/issues/1438#issuecomment-108651651","issue_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1438","id":108651651,"user":{"login":"mhartington","id":2835826,"avatar_url":"https://avatars.githubusercontent.com/u/2835826?v=3","gravatar_id":"","url":"https://api.github.com/users/mhartington","html_url":"https://github.com/mhartington","followers_url":"https://api.github.com/users/mhartington/followers","following_url":"https://api.github.com/users/mhartington/following{/other_user}","gists_url":"https://api.github.com/users/mhartington/gists{/gist_id}","starred_url":"https://api.github.com/users/mhartington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhartington/subscriptions","organizations_url":"https://api.github.com/users/mhartington/orgs","repos_url":"https://api.github.com/users/mhartington/repos","events_url":"https://api.github.com/users/mhartington/events{/privacy}","received_events_url":"https://api.github.com/users/mhartington/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T00:02:09Z","updated_at":"2015-06-04T00:02:09Z","body":"So after a lot of reading and trying to figure out what was wrong...two things came. \r\n1) I had `let b:syntastic_javascript_checkers = ['jscs', 'eslint']` instead of `let g:`\r\n2) jscs wouldn't show because I needed to enable aggregate errors. ` let g:syntastic_aggregate_errors = 1 `\r\n\r\nPutting this here for future reference. "}}