{"action":"created","issue":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/903","repository_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx","labels_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/903/comments","events_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/903/events","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/pull/903","id":163554333,"number":903,"title":"5.6updates","user":{"login":"jmecosta","id":1041352,"avatar_url":"https://avatars.githubusercontent.com/u/1041352?v=3","gravatar_id":"","url":"https://api.github.com/users/jmecosta","html_url":"https://github.com/jmecosta","followers_url":"https://api.github.com/users/jmecosta/followers","following_url":"https://api.github.com/users/jmecosta/following{/other_user}","gists_url":"https://api.github.com/users/jmecosta/gists{/gist_id}","starred_url":"https://api.github.com/users/jmecosta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmecosta/subscriptions","organizations_url":"https://api.github.com/users/jmecosta/orgs","repos_url":"https://api.github.com/users/jmecosta/repos","events_url":"https://api.github.com/users/jmecosta/events{/privacy}","received_events_url":"https://api.github.com/users/jmecosta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-03T09:20:22Z","updated_at":"2016-07-07T17:09:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/pulls/903","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/pull/903","diff_url":"https://github.com/SonarOpenCommunity/sonar-cxx/pull/903.diff","patch_url":"https://github.com/SonarOpenCommunity/sonar-cxx/pull/903.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/comments/231144223","html_url":"https://github.com/SonarOpenCommunity/sonar-cxx/pull/903#issuecomment-231144223","issue_url":"https://api.github.com/repos/SonarOpenCommunity/sonar-cxx/issues/903","id":231144223,"user":{"login":"guwirth","id":6077367,"avatar_url":"https://avatars.githubusercontent.com/u/6077367?v=3","gravatar_id":"","url":"https://api.github.com/users/guwirth","html_url":"https://github.com/guwirth","followers_url":"https://api.github.com/users/guwirth/followers","following_url":"https://api.github.com/users/guwirth/following{/other_user}","gists_url":"https://api.github.com/users/guwirth/gists{/gist_id}","starred_url":"https://api.github.com/users/guwirth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guwirth/subscriptions","organizations_url":"https://api.github.com/users/guwirth/orgs","repos_url":"https://api.github.com/users/guwirth/repos","events_url":"https://api.github.com/users/guwirth/events{/privacy}","received_events_url":"https://api.github.com/users/guwirth/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T17:09:51Z","updated_at":"2016-07-07T17:09:51Z","body":"> found the cause of the critical error. the files that fail to parsed are ended in .cc if renaming\r\n\r\n@jmecosta maybe the problem is here:\r\nhttps://github.com/SonarOpenCommunity/sonar-cxx/pull/903/files#diff-8e7776ebd58c67b7a828c983909d6fa4R290\r\n```Java\r\n   private boolean isCFile(String filePath) {\r\n     for (String pattern : cFilesPatterns) {\r\n-      if (wildcardMatchOnSystem(filePath, pattern)) {\r\n+      String regex = pattern.replace(\"?\", \".?\").replace(\"*\", \".*?\");\r\n+      if (filePath.matches(regex)) {\r\n         if (LOG.isTraceEnabled()) {\r\n           LOG.trace(\"Parse '{}' as C file, matches '{}' pattern\", filePath, pattern);\r\n         }\r\n```\r\n"}}
{"actor":{"display_login":"guwirth"}}