{"action":"created","issue":{"url":"https://api.github.com/repos/aochagavia/LintMe/issues/3","labels_url":"https://api.github.com/repos/aochagavia/LintMe/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aochagavia/LintMe/issues/3/comments","events_url":"https://api.github.com/repos/aochagavia/LintMe/issues/3/events","html_url":"https://github.com/aochagavia/LintMe/pull/3","id":63441018,"number":3,"title":"Add useless haskell files!","user":{"login":"aochagavia","id":5196584,"avatar_url":"https://avatars.githubusercontent.com/u/5196584?v=3","gravatar_id":"","url":"https://api.github.com/users/aochagavia","html_url":"https://github.com/aochagavia","followers_url":"https://api.github.com/users/aochagavia/followers","following_url":"https://api.github.com/users/aochagavia/following{/other_user}","gists_url":"https://api.github.com/users/aochagavia/gists{/gist_id}","starred_url":"https://api.github.com/users/aochagavia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aochagavia/subscriptions","organizations_url":"https://api.github.com/users/aochagavia/orgs","repos_url":"https://api.github.com/users/aochagavia/repos","events_url":"https://api.github.com/users/aochagavia/events{/privacy}","received_events_url":"https://api.github.com/users/aochagavia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-21T18:54:03Z","updated_at":"2015-03-21T18:54:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aochagavia/LintMe/pulls/3","html_url":"https://github.com/aochagavia/LintMe/pull/3","diff_url":"https://github.com/aochagavia/LintMe/pull/3.diff","patch_url":"https://github.com/aochagavia/LintMe/pull/3.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/aochagavia/LintMe/issues/comments/84421715","html_url":"https://github.com/aochagavia/LintMe/pull/3#issuecomment-84421715","issue_url":"https://api.github.com/repos/aochagavia/LintMe/issues/3","id":84421715,"user":{"login":"ContentRabbit","id":11584449,"avatar_url":"https://avatars.githubusercontent.com/u/11584449?v=3","gravatar_id":"","url":"https://api.github.com/users/ContentRabbit","html_url":"https://github.com/ContentRabbit","followers_url":"https://api.github.com/users/ContentRabbit/followers","following_url":"https://api.github.com/users/ContentRabbit/following{/other_user}","gists_url":"https://api.github.com/users/ContentRabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/ContentRabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContentRabbit/subscriptions","organizations_url":"https://api.github.com/users/ContentRabbit/orgs","repos_url":"https://api.github.com/users/ContentRabbit/repos","events_url":"https://api.github.com/users/ContentRabbit/events{/privacy}","received_events_url":"https://api.github.com/users/ContentRabbit/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T18:54:30Z","updated_at":"2015-03-21T18:54:30Z","body":"Here is the output of linting your javascript files:\n```\n1426964045327/rest/main.js\n #1 Unexpected sync method: 'openSync'.\n    var out = fs.openSync('./out.log', 'a'); // Line 6, Pos 14\n #2 Unexpected sync method: 'openSync'.\n    var err = fs.openSync('./out.log', 'a'); // Line 7, Pos 14\n #3 Missing 'use strict' statement.\n    var pr = req.body.pull_request; // Line 13, Pos 5\n #4 Combine this with the previous 'var' statement.\n    var args = ['-jar', '../bot/target/LintMe-1.0-SNAPSHOT-jar-with-dependencies.jar', pr.base.repo.clone_url, pr.base.repo.full_name, pr.head.repo.clone_url, pr.head.ref, pr.number, pr.mergeable !== false]; // Line 15, Pos 9\n #5 Unexpected character '(space)'.\n     // Line 17, Pos 4\n #6 Unexpected character '(space)'.\n     // Line 19, Pos 4\n #7 Combine this with the previous 'var' statement.\n    var child = spawn('java', args, { // Line 21, Pos 9\n #8 Missing 'use strict' statement.\n    var host = server.address().address; // Line 30, Pos 5\n #9 Combine this with the previous 'var' statement.\n    var port = server.address().port; // Line 31, Pos 9\n1426964045327/newFiles/src/Checker.hs:75:5: Parse error\nError message:\n  Parse error: ;\nCode:\n        pure = return\n        (<*>) :: Checker (a -> b) -> Checker a -> Checker b\n  >     (Checker func) <*> (Checker x) = Checker checkFunc \n            where checkFunc env = let (env', f)   = func env\n                                      (env'', x') = x env'\n1 suggestion\n1426964045327/newFiles/src/Main.hs:35:32: Error: Too strict if\nFound:\n  if reprint args then\n    return $\n      map (\\ f -> (f, addExtension (dropExtension f ++ \"RP\") \"cs\"))\n        (cleanOfParameters xs)\n    else\n    return $ map (\\ f -> (f, addExtension (dropExtension f) \"ssm\")) xs\nWhy not:\n  return\n    (if reprint args then\n       map (\\ f -> (f, addExtension (dropExtension f ++ \"RP\") \"cs\"))\n         (cleanOfParameters xs)\n       else map (\\ f -> (f, addExtension (dropExtension f) \"ssm\")) xs)\nNote: increases laziness\n1 suggestion\n1426964045327/newFiles/src/Env.hs:23:60: Warning: Use infix\nFound:\n  Map.union fsL fsR\nWhy not:\n  fsL `Map.union` fsR\n1426964045327/newFiles/src/Env.hs:23:80: Warning: Use infix\nFound:\n  Map.union msL msR\nWhy not:\n  msL `Map.union` msR\n1426964045327/newFiles/src/Env.hs:23:100: Warning: Use infix\nFound:\n  Map.union lsL lsR\nWhy not:\n  lsL `Map.union` lsR\n3 suggestions\n1426964045327/newFiles/good_js.js\n #1 'fn' was used before it was defined.\n    fn main() { // Line 1, Pos 1\n #2 Expected ';' and instead saw 'main'.\n    fn main() { // Line 1, Pos 3\n #3 Expected 'main' at column 1, not column 4.\n    fn main() { // Line 1, Pos 4\n #4 Expected an operator and instead saw '{'.\n    fn main() { // Line 1, Pos 11\n #5 Stopping. (33% scanned).\n     // Line 1, Pos 5\n\n```"}}