{"comment":{"url":"https://api.github.com/repos/adireddy/haxe-checkstyle/comments/11309361","html_url":"https://github.com/adireddy/haxe-checkstyle/commit/a7ec229e1f05bb4919c1aa5562f22ab399b43592#commitcomment-11309361","id":11309361,"user":{"login":"AlexHaxe","id":7204032,"avatar_url":"https://avatars.githubusercontent.com/u/7204032?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexHaxe","html_url":"https://github.com/AlexHaxe","followers_url":"https://api.github.com/users/AlexHaxe/followers","following_url":"https://api.github.com/users/AlexHaxe/following{/other_user}","gists_url":"https://api.github.com/users/AlexHaxe/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexHaxe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexHaxe/subscriptions","organizations_url":"https://api.github.com/users/AlexHaxe/orgs","repos_url":"https://api.github.com/users/AlexHaxe/repos","events_url":"https://api.github.com/users/AlexHaxe/events{/privacy}","received_events_url":"https://api.github.com/users/AlexHaxe/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"a7ec229e1f05bb4919c1aa5562f22ab399b43592","created_at":"2015-05-21T15:56:30Z","updated_at":"2015-05-21T15:56:30Z","body":"I have tried running a CyclomaticComplexityCheck on haxe-checkstyle itself and I found a few stacktraces.\r\nMy investigation showed two problems (haxe 3.2.0 on Linux 64bit):\r\n- thresholds array has no default -> filter error in line 43\r\n- default expressions of switch blocks can contain e.expr = null, which does not seem to be handled by \"default:\"-case leading to \"Invalid field access : index\" in line 57\r\n\r\nI tried to fix the problems, but I am not sure if my solution has any side effects:  https://github.com/AlexHaxe/haxe-checkstyle/commit/011b3a5b664daa1bcc53de76e5ba0afc6faf7657\r\n"}}