{"action":"created","comment":{"url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/comments/54405022","id":54405022,"diff_hunk":"@@ -0,0 +1,125 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright 2016 Fundacion Jala.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package org.fundacionjala.enforce.sonarqube.apex.checks;\n+\n+import java.util.List;\n+\n+import com.sonar.sslr.api.AstNode;\n+import com.sonar.sslr.api.Grammar;\n+import org.sonar.api.server.rule.RulesDefinition;\n+import org.sonar.check.Priority;\n+import org.sonar.check.Rule;\n+import org.sonar.squidbridge.annotations.ActivatedByDefault;\n+import org.sonar.squidbridge.annotations.SqaleConstantRemediation;\n+import org.sonar.squidbridge.annotations.SqaleSubCharacteristic;\n+import org.sonar.squidbridge.checks.SquidCheck;\n+\n+import org.fundacionjala.enforce.sonarqube.apex.api.ApexKeyword;\n+import org.fundacionjala.enforce.sonarqube.apex.api.grammar.RuleKey;\n+\n+/**\n+ * Check that a deprecated method does not contain lines of code.","path":"apex-checks/src/main/java/org/fundacionjala/enforce/sonarqube/apex/checks/DeprecatedMethodCheck.java","position":42,"original_position":42,"commit_id":"e6754c18fe6782ff31c9b73f838a5344cb2e2fca","original_commit_id":"e6754c18fe6782ff31c9b73f838a5344cb2e2fca","user":{"login":"JimmyRojas","id":13870974,"avatar_url":"https://avatars.githubusercontent.com/u/13870974?v=3","gravatar_id":"","url":"https://api.github.com/users/JimmyRojas","html_url":"https://github.com/JimmyRojas","followers_url":"https://api.github.com/users/JimmyRojas/followers","following_url":"https://api.github.com/users/JimmyRojas/following{/other_user}","gists_url":"https://api.github.com/users/JimmyRojas/gists{/gist_id}","starred_url":"https://api.github.com/users/JimmyRojas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JimmyRojas/subscriptions","organizations_url":"https://api.github.com/users/JimmyRojas/orgs","repos_url":"https://api.github.com/users/JimmyRojas/repos","events_url":"https://api.github.com/users/JimmyRojas/events{/privacy}","received_events_url":"https://api.github.com/users/JimmyRojas/received_events","type":"User","site_admin":false},"body":"Checks\r\n\r\nThis class checks","created_at":"2016-02-29T12:48:07Z","updated_at":"2016-02-29T12:48:07Z","html_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8#discussion_r54405022","pull_request_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/comments/54405022"},"html":{"href":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8#discussion_r54405022"},"pull_request":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8","id":60411166,"html_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8","diff_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8.diff","patch_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8.patch","issue_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/8","number":8,"state":"open","locked":false,"title":"Grammar apex","user":{"login":"dan-canqui","id":5834524,"avatar_url":"https://avatars.githubusercontent.com/u/5834524?v=3","gravatar_id":"","url":"https://api.github.com/users/dan-canqui","html_url":"https://github.com/dan-canqui","followers_url":"https://api.github.com/users/dan-canqui/followers","following_url":"https://api.github.com/users/dan-canqui/following{/other_user}","gists_url":"https://api.github.com/users/dan-canqui/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-canqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-canqui/subscriptions","organizations_url":"https://api.github.com/users/dan-canqui/orgs","repos_url":"https://api.github.com/users/dan-canqui/repos","events_url":"https://api.github.com/users/dan-canqui/events{/privacy}","received_events_url":"https://api.github.com/users/dan-canqui/received_events","type":"User","site_admin":false},"body":"Improve grammar rules to support DML statements","created_at":"2016-02-23T21:16:50Z","updated_at":"2016-02-29T12:48:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09abfaf5ebcdf43476ce6c8e6a808dc2aea49ee3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8/commits","review_comments_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8/comments","review_comment_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/8/comments","statuses_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/statuses/e6754c18fe6782ff31c9b73f838a5344cb2e2fca","head":{"label":"RockFercho:grammar_apex","ref":"grammar_apex","sha":"e6754c18fe6782ff31c9b73f838a5344cb2e2fca","user":{"login":"RockFercho","id":7131972,"avatar_url":"https://avatars.githubusercontent.com/u/7131972?v=3","gravatar_id":"","url":"https://api.github.com/users/RockFercho","html_url":"https://github.com/RockFercho","followers_url":"https://api.github.com/users/RockFercho/followers","following_url":"https://api.github.com/users/RockFercho/following{/other_user}","gists_url":"https://api.github.com/users/RockFercho/gists{/gist_id}","starred_url":"https://api.github.com/users/RockFercho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockFercho/subscriptions","organizations_url":"https://api.github.com/users/RockFercho/orgs","repos_url":"https://api.github.com/users/RockFercho/repos","events_url":"https://api.github.com/users/RockFercho/events{/privacy}","received_events_url":"https://api.github.com/users/RockFercho/received_events","type":"User","site_admin":false},"repo":{"id":50438697,"name":"enforce-sonarqube-plugin","full_name":"RockFercho/enforce-sonarqube-plugin","owner":{"login":"RockFercho","id":7131972,"avatar_url":"https://avatars.githubusercontent.com/u/7131972?v=3","gravatar_id":"","url":"https://api.github.com/users/RockFercho","html_url":"https://github.com/RockFercho","followers_url":"https://api.github.com/users/RockFercho/followers","following_url":"https://api.github.com/users/RockFercho/following{/other_user}","gists_url":"https://api.github.com/users/RockFercho/gists{/gist_id}","starred_url":"https://api.github.com/users/RockFercho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RockFercho/subscriptions","organizations_url":"https://api.github.com/users/RockFercho/orgs","repos_url":"https://api.github.com/users/RockFercho/repos","events_url":"https://api.github.com/users/RockFercho/events{/privacy}","received_events_url":"https://api.github.com/users/RockFercho/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RockFercho/enforce-sonarqube-plugin","description":"Apex static code analyzer.","fork":true,"url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin","forks_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/forks","keys_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/teams","hooks_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/hooks","issue_events_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/events","assignees_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/tags","blobs_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/languages","stargazers_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/stargazers","contributors_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/contributors","subscribers_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/subscribers","subscription_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/subscription","commits_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/merges","archive_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/downloads","issues_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/labels{/name}","releases_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/RockFercho/enforce-sonarqube-plugin/deployments","created_at":"2016-01-26T15:39:35Z","updated_at":"2016-01-26T13:15:15Z","pushed_at":"2016-02-27T17:54:00Z","git_url":"git://github.com/RockFercho/enforce-sonarqube-plugin.git","ssh_url":"git@github.com:RockFercho/enforce-sonarqube-plugin.git","clone_url":"https://github.com/RockFercho/enforce-sonarqube-plugin.git","svn_url":"https://github.com/RockFercho/enforce-sonarqube-plugin","homepage":null,"size":287,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fundacionjala:develop","ref":"develop","sha":"610a0f21babf5fecef61411b7cb32c2eb0af03c0","user":{"login":"fundacionjala","id":11635305,"avatar_url":"https://avatars.githubusercontent.com/u/11635305?v=3","gravatar_id":"","url":"https://api.github.com/users/fundacionjala","html_url":"https://github.com/fundacionjala","followers_url":"https://api.github.com/users/fundacionjala/followers","following_url":"https://api.github.com/users/fundacionjala/following{/other_user}","gists_url":"https://api.github.com/users/fundacionjala/gists{/gist_id}","starred_url":"https://api.github.com/users/fundacionjala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fundacionjala/subscriptions","organizations_url":"https://api.github.com/users/fundacionjala/orgs","repos_url":"https://api.github.com/users/fundacionjala/repos","events_url":"https://api.github.com/users/fundacionjala/events{/privacy}","received_events_url":"https://api.github.com/users/fundacionjala/received_events","type":"Organization","site_admin":false},"repo":{"id":50429558,"name":"enforce-sonarqube-plugin","full_name":"fundacionjala/enforce-sonarqube-plugin","owner":{"login":"fundacionjala","id":11635305,"avatar_url":"https://avatars.githubusercontent.com/u/11635305?v=3","gravatar_id":"","url":"https://api.github.com/users/fundacionjala","html_url":"https://github.com/fundacionjala","followers_url":"https://api.github.com/users/fundacionjala/followers","following_url":"https://api.github.com/users/fundacionjala/following{/other_user}","gists_url":"https://api.github.com/users/fundacionjala/gists{/gist_id}","starred_url":"https://api.github.com/users/fundacionjala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fundacionjala/subscriptions","organizations_url":"https://api.github.com/users/fundacionjala/orgs","repos_url":"https://api.github.com/users/fundacionjala/repos","events_url":"https://api.github.com/users/fundacionjala/events{/privacy}","received_events_url":"https://api.github.com/users/fundacionjala/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin","description":"Apex static code analyzer.","fork":false,"url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin","forks_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/forks","keys_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/teams","hooks_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/hooks","issue_events_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/events","assignees_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/tags","blobs_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/languages","stargazers_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/stargazers","contributors_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/contributors","subscribers_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/subscribers","subscription_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/subscription","commits_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/merges","archive_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/downloads","issues_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/labels{/name}","releases_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/deployments","created_at":"2016-01-26T13:15:15Z","updated_at":"2016-02-01T01:18:15Z","pushed_at":"2016-02-27T17:54:00Z","git_url":"git://github.com/fundacionjala/enforce-sonarqube-plugin.git","ssh_url":"git@github.com:fundacionjala/enforce-sonarqube-plugin.git","clone_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin.git","svn_url":"https://github.com/fundacionjala/enforce-sonarqube-plugin","homepage":null,"size":172,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8"},"html":{"href":"https://github.com/fundacionjala/enforce-sonarqube-plugin/pull/8"},"issue":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/8"},"comments":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/fundacionjala/enforce-sonarqube-plugin/statuses/e6754c18fe6782ff31c9b73f838a5344cb2e2fca"}}}}