{"action":"opened","issue":{"url":"https://api.github.com/repos/wcandillon/xqlint/issues/41","labels_url":"https://api.github.com/repos/wcandillon/xqlint/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/wcandillon/xqlint/issues/41/comments","events_url":"https://api.github.com/repos/wcandillon/xqlint/issues/41/events","html_url":"https://github.com/wcandillon/xqlint/issues/41","id":58094458,"number":41,"title":"Used variable reported as unused","user":{"login":"fcavalieri","id":4959269,"avatar_url":"https://avatars.githubusercontent.com/u/4959269?v=3","gravatar_id":"","url":"https://api.github.com/users/fcavalieri","html_url":"https://github.com/fcavalieri","followers_url":"https://api.github.com/users/fcavalieri/followers","following_url":"https://api.github.com/users/fcavalieri/following{/other_user}","gists_url":"https://api.github.com/users/fcavalieri/gists{/gist_id}","starred_url":"https://api.github.com/users/fcavalieri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcavalieri/subscriptions","organizations_url":"https://api.github.com/users/fcavalieri/orgs","repos_url":"https://api.github.com/users/fcavalieri/repos","events_url":"https://api.github.com/users/fcavalieri/events{/privacy}","received_events_url":"https://api.github.com/users/fcavalieri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-18T16:53:23Z","updated_at":"2015-02-18T16:53:23Z","closed_at":null,"body":"declare %an:nondeterministic function export:cleanup($report as item) as item*\r\n{\r\n    (: add Ids everywhere :)\r\n    copy $report := $report\r\n    modify\r\n    (\r\n      for $object in descendant-objects($report)\r\n      where exists($object.Name) and not(exists($object.Id))\r\n      return\r\n        insert json { \"Id\": random:uuid() } into $object\r\n    )\r\n    return export:cleanupImpl($report)\r\n};\r\n\r\n==>\r\n\r\n/home/ubuntu/cellstore/queries/modules/io/28/apps/reports-export.jq\r\n\t6 |declare %an:nondeterministic function export:cleanup($report as item) as item*\r\n^ [W03] Unused variable \"$report\"\r\n\r\n\r\n"}}