{"action":"created","comment":{"url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/comments/233744736","pull_request_review_id":175230120,"id":233744736,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzc0NDczNg==","diff_hunk":"@@ -1,13 +1,58 @@\n-package com.jcg.maven;\n-\n-/**\n- * Hello world!\n- *\n- */\n-public class App \n-{\n-    public static void main( String[] args )\n-    {\n-        System.out.println( \"Hello World!\" );\n-    }\n-}\n+package com.jcg.maven;\r\n+\r\n+/**\r\n+ * Hello world!\r\n+ *\r\n+ */\r\n+public class App \r\n+{\r\n+    private static final int MAX_PRICE = 10;\r\n+\r\n+    public static void main(String[] args )\r\n+    {\r\n+        System.out.println( \"Hello World!\" );\r\n+    }\r\n+\r\n+\r\n+    public void notCovered() {\r\n+        System.out.println(\"notCovered\");\r\n+    }\r\n+\r\n+\r\n+    public void newMethod(){\r\n+    int target = -5;\r\n+    int num = 3;\r\n+\r\n+    target =- num;  // Noncompliant; target = -3. Is that really what's meant?\r\n+    target =+ num; // Noncompliant; target = 3\r\n+\r\n+\r\n+    String str = \"/File|Name.txt\";\r\n+\r\n+    String clean = str.replaceAll(\".\",\"\"); // Noncompliant; probably meant to remove only dot chars, but returns an empty string\r","path":"src/main/java/com/jcg/maven/App.java","position":45,"original_position":45,"commit_id":"db96822e94bcfe64ca63118bf14eac256c910dc0","original_commit_id":"db96822e94bcfe64ca63118bf14eac256c910dc0","user":{"login":"local-aurelie-github-app[bot]","id":43753641,"node_id":"MDM6Qm90NDM3NTM2NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/42917701?v=4","gravatar_id":"","url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D","html_url":"https://github.com/apps/local-aurelie-github-app","followers_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/followers","following_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/repos","events_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/local-aurelie-github-app%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Bug](https://sonarsource.github.io/sonar-github/bug.png 'Bug') Bug: Correct this regular expression. ([squid:S2639](https://aurelie.eu.ngrok.io/organizations/myglobalorganisation/rules#rule_key=squid%3AS2639))\n\n[See it in SonarCloud](https://aurelie.eu.ngrok.io/project/issues?id=globalrepository3&pullRequest=1&issues=AWcWbs0SLHSEDDb6RrUH&open=AWcWbs0SLHSEDDb6RrUH)\n\n[ISSUE_KEY]: AWcWbs0SLHSEDDb6RrUH","created_at":"2018-11-15T08:14:52Z","updated_at":"2018-11-15T08:14:53Z","html_url":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1#discussion_r233744736","pull_request_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/comments/233744736"},"html":{"href":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1#discussion_r233744736"},"pull_request":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1","id":227886907,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODg2OTA3","html_url":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1","diff_url":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1.diff","patch_url":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1.patch","issue_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/1","number":1,"state":"open","locked":false,"title":"Adding issues","user":{"login":"aurelie-boiteux-sonarsource","id":42917701,"node_id":"MDQ6VXNlcjQyOTE3NzAx","avatar_url":"https://avatars0.githubusercontent.com/u/42917701?v=4","gravatar_id":"","url":"https://api.github.com/users/aurelie-boiteux-sonarsource","html_url":"https://github.com/aurelie-boiteux-sonarsource","followers_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/followers","following_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/following{/other_user}","gists_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/gists{/gist_id}","starred_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/subscriptions","organizations_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/orgs","repos_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/repos","events_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/events{/privacy}","received_events_url":"https://api.github.com/users/aurelie-boiteux-sonarsource/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-02T10:05:34Z","updated_at":"2018-11-15T08:14:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"107a13e457ffe27a7bbe888e56d90001a804d2fc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1/commits","review_comments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1/comments","review_comment_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/1/comments","statuses_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/statuses/db96822e94bcfe64ca63118bf14eac256c910dc0","head":{"label":"MyGlobalOrganization:feature-1","ref":"feature-1","sha":"db96822e94bcfe64ca63118bf14eac256c910dc0","user":{"login":"MyGlobalOrganization","id":44471210,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDcxMjEw","avatar_url":"https://avatars0.githubusercontent.com/u/44471210?v=4","gravatar_id":"","url":"https://api.github.com/users/MyGlobalOrganization","html_url":"https://github.com/MyGlobalOrganization","followers_url":"https://api.github.com/users/MyGlobalOrganization/followers","following_url":"https://api.github.com/users/MyGlobalOrganization/following{/other_user}","gists_url":"https://api.github.com/users/MyGlobalOrganization/gists{/gist_id}","starred_url":"https://api.github.com/users/MyGlobalOrganization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyGlobalOrganization/subscriptions","organizations_url":"https://api.github.com/users/MyGlobalOrganization/orgs","repos_url":"https://api.github.com/users/MyGlobalOrganization/repos","events_url":"https://api.github.com/users/MyGlobalOrganization/events{/privacy}","received_events_url":"https://api.github.com/users/MyGlobalOrganization/received_events","type":"Organization","site_admin":false},"repo":{"id":154839834,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4Mzk4MzQ=","name":"globalRepository3","full_name":"MyGlobalOrganization/globalRepository3","private":false,"owner":{"login":"MyGlobalOrganization","id":44471210,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDcxMjEw","avatar_url":"https://avatars0.githubusercontent.com/u/44471210?v=4","gravatar_id":"","url":"https://api.github.com/users/MyGlobalOrganization","html_url":"https://github.com/MyGlobalOrganization","followers_url":"https://api.github.com/users/MyGlobalOrganization/followers","following_url":"https://api.github.com/users/MyGlobalOrganization/following{/other_user}","gists_url":"https://api.github.com/users/MyGlobalOrganization/gists{/gist_id}","starred_url":"https://api.github.com/users/MyGlobalOrganization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyGlobalOrganization/subscriptions","organizations_url":"https://api.github.com/users/MyGlobalOrganization/orgs","repos_url":"https://api.github.com/users/MyGlobalOrganization/repos","events_url":"https://api.github.com/users/MyGlobalOrganization/events{/privacy}","received_events_url":"https://api.github.com/users/MyGlobalOrganization/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MyGlobalOrganization/globalRepository3","description":null,"fork":false,"url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3","forks_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/forks","keys_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/teams","hooks_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/hooks","issue_events_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/events{/number}","events_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/events","assignees_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/assignees{/user}","branches_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/branches{/branch}","tags_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/tags","blobs_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/statuses/{sha}","languages_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/languages","stargazers_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/stargazers","contributors_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/contributors","subscribers_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/subscribers","subscription_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/subscription","commits_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/contents/{+path}","compare_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/merges","archive_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/downloads","issues_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues{/number}","pulls_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls{/number}","milestones_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/milestones{/number}","notifications_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/labels{/name}","releases_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/releases{/id}","deployments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/deployments","created_at":"2018-10-26T13:35:34Z","updated_at":"2018-11-02T09:58:06Z","pushed_at":"2018-11-05T14:46:03Z","git_url":"git://github.com/MyGlobalOrganization/globalRepository3.git","ssh_url":"git@github.com:MyGlobalOrganization/globalRepository3.git","clone_url":"https://github.com/MyGlobalOrganization/globalRepository3.git","svn_url":"https://github.com/MyGlobalOrganization/globalRepository3","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MyGlobalOrganization:master","ref":"master","sha":"38b5bec1ea96fd015ef112017c3faa381a217526","user":{"login":"MyGlobalOrganization","id":44471210,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDcxMjEw","avatar_url":"https://avatars0.githubusercontent.com/u/44471210?v=4","gravatar_id":"","url":"https://api.github.com/users/MyGlobalOrganization","html_url":"https://github.com/MyGlobalOrganization","followers_url":"https://api.github.com/users/MyGlobalOrganization/followers","following_url":"https://api.github.com/users/MyGlobalOrganization/following{/other_user}","gists_url":"https://api.github.com/users/MyGlobalOrganization/gists{/gist_id}","starred_url":"https://api.github.com/users/MyGlobalOrganization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyGlobalOrganization/subscriptions","organizations_url":"https://api.github.com/users/MyGlobalOrganization/orgs","repos_url":"https://api.github.com/users/MyGlobalOrganization/repos","events_url":"https://api.github.com/users/MyGlobalOrganization/events{/privacy}","received_events_url":"https://api.github.com/users/MyGlobalOrganization/received_events","type":"Organization","site_admin":false},"repo":{"id":154839834,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4Mzk4MzQ=","name":"globalRepository3","full_name":"MyGlobalOrganization/globalRepository3","private":false,"owner":{"login":"MyGlobalOrganization","id":44471210,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0NDcxMjEw","avatar_url":"https://avatars0.githubusercontent.com/u/44471210?v=4","gravatar_id":"","url":"https://api.github.com/users/MyGlobalOrganization","html_url":"https://github.com/MyGlobalOrganization","followers_url":"https://api.github.com/users/MyGlobalOrganization/followers","following_url":"https://api.github.com/users/MyGlobalOrganization/following{/other_user}","gists_url":"https://api.github.com/users/MyGlobalOrganization/gists{/gist_id}","starred_url":"https://api.github.com/users/MyGlobalOrganization/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MyGlobalOrganization/subscriptions","organizations_url":"https://api.github.com/users/MyGlobalOrganization/orgs","repos_url":"https://api.github.com/users/MyGlobalOrganization/repos","events_url":"https://api.github.com/users/MyGlobalOrganization/events{/privacy}","received_events_url":"https://api.github.com/users/MyGlobalOrganization/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MyGlobalOrganization/globalRepository3","description":null,"fork":false,"url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3","forks_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/forks","keys_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/teams","hooks_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/hooks","issue_events_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/events{/number}","events_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/events","assignees_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/assignees{/user}","branches_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/branches{/branch}","tags_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/tags","blobs_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/refs{/sha}","trees_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/statuses/{sha}","languages_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/languages","stargazers_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/stargazers","contributors_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/contributors","subscribers_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/subscribers","subscription_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/subscription","commits_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/commits{/sha}","git_commits_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/git/commits{/sha}","comments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/comments{/number}","issue_comment_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/comments{/number}","contents_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/contents/{+path}","compare_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/merges","archive_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/downloads","issues_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues{/number}","pulls_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls{/number}","milestones_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/milestones{/number}","notifications_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/labels{/name}","releases_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/releases{/id}","deployments_url":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/deployments","created_at":"2018-10-26T13:35:34Z","updated_at":"2018-11-02T09:58:06Z","pushed_at":"2018-11-05T14:46:03Z","git_url":"git://github.com/MyGlobalOrganization/globalRepository3.git","ssh_url":"git@github.com:MyGlobalOrganization/globalRepository3.git","clone_url":"https://github.com/MyGlobalOrganization/globalRepository3.git","svn_url":"https://github.com/MyGlobalOrganization/globalRepository3","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1"},"html":{"href":"https://github.com/MyGlobalOrganization/globalRepository3/pull/1"},"issue":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/1"},"comments":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/MyGlobalOrganization/globalRepository3/statuses/db96822e94bcfe64ca63118bf14eac256c910dc0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"local-aurelie-github-app"}}