{"action":"created","comment":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments/198855883","pull_request_review_id":132861427,"id":198855883,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5ODg1NTg4Mw==","diff_hunk":"@@ -0,0 +1,149 @@\n+////////////////////////////////////////////////////////////////////////////////\n+// checkstyle: Checks Java source code for adherence to a set of rules.\n+// Copyright (C) 2001-2018 the original author or authors.\n+//\n+// This library is free software; you can redistribute it and/or\n+// modify it under the terms of the GNU Lesser General Public\n+// License as published by the Free Software Foundation; either\n+// version 2.1 of the License, or (at your option) any later version.\n+//\n+// This library is distributed in the hope that it will be useful,\n+// but WITHOUT ANY WARRANTY; without even the implied warranty of\n+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\n+// Lesser General Public License for more details.\n+//\n+// You should have received a copy of the GNU Lesser General Public\n+// License along with this library; if not, write to the Free Software\n+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\n+////////////////////////////////////////////////////////////////////////////////\n+\n+package com.puppycrawl.tools.checkstyle;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+import java.util.stream.Collectors;\n+\n+import com.puppycrawl.tools.checkstyle.api.AuditEvent;\n+import com.puppycrawl.tools.checkstyle.api.AutomaticBean;\n+import com.puppycrawl.tools.checkstyle.api.DetailAST;\n+import com.puppycrawl.tools.checkstyle.api.FileText;\n+import com.puppycrawl.tools.checkstyle.api.LocalizedMessage;\n+import com.puppycrawl.tools.checkstyle.xpath.XpathQueryGenerator;\n+\n+/**\n+ * Catches {@code TreeWalkerAuditEvent} and generates corresponding xpath query.\n+ * Stores event and query inside static variables for {@code XpathFileGeneratorAuditListener}.\n+ * See issue #102 https://github.com/checkstyle/checkstyle/issues/102\n+ *","path":"src/main/java/com/puppycrawl/tools/checkstyle/XpathFileGeneratorAstFilter.java","position":null,"original_position":37,"commit_id":"02208f8cfeb79772ac49bb5e807d67fd1ae35854","original_commit_id":"9e3b5e23e07c8ae8127ff221231c817fd5f8befc","user":{"login":"timurt","id":1443064,"node_id":"MDQ6VXNlcjE0NDMwNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1443064?v=4","gravatar_id":"","url":"https://api.github.com/users/timurt","html_url":"https://github.com/timurt","followers_url":"https://api.github.com/users/timurt/followers","following_url":"https://api.github.com/users/timurt/following{/other_user}","gists_url":"https://api.github.com/users/timurt/gists{/gist_id}","starred_url":"https://api.github.com/users/timurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timurt/subscriptions","organizations_url":"https://api.github.com/users/timurt/orgs","repos_url":"https://api.github.com/users/timurt/repos","events_url":"https://api.github.com/users/timurt/events{/privacy}","received_events_url":"https://api.github.com/users/timurt/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-06-28T14:12:24Z","updated_at":"2018-06-28T14:12:24Z","html_url":"https://github.com/checkstyle/checkstyle/pull/5883#discussion_r198855883","pull_request_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments/198855883"},"html":{"href":"https://github.com/checkstyle/checkstyle/pull/5883#discussion_r198855883"},"pull_request":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883"}},"in_reply_to_id":198827964},"pull_request":{"url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883","id":192267872,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMjY3ODcy","html_url":"https://github.com/checkstyle/checkstyle/pull/5883","diff_url":"https://github.com/checkstyle/checkstyle/pull/5883.diff","patch_url":"https://github.com/checkstyle/checkstyle/pull/5883.patch","issue_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5883","number":5883,"state":"open","locked":false,"title":"Issue #102: Generate a suppressions.xml file from the errors list","user":{"login":"timurt","id":1443064,"node_id":"MDQ6VXNlcjE0NDMwNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1443064?v=4","gravatar_id":"","url":"https://api.github.com/users/timurt","html_url":"https://github.com/timurt","followers_url":"https://api.github.com/users/timurt/followers","following_url":"https://api.github.com/users/timurt/following{/other_user}","gists_url":"https://api.github.com/users/timurt/gists{/gist_id}","starred_url":"https://api.github.com/users/timurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timurt/subscriptions","organizations_url":"https://api.github.com/users/timurt/orgs","repos_url":"https://api.github.com/users/timurt/repos","events_url":"https://api.github.com/users/timurt/events{/privacy}","received_events_url":"https://api.github.com/users/timurt/received_events","type":"User","site_admin":false},"body":"https://github.com/checkstyle/checkstyle/issues/102","created_at":"2018-06-03T21:16:00Z","updated_at":"2018-06-28T14:12:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1b11dfe14ca33057f48946ef52d9045cc453e64","assignee":{"login":"rnveach","id":5427943,"node_id":"MDQ6VXNlcjU0Mjc5NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/5427943?v=4","gravatar_id":"","url":"https://api.github.com/users/rnveach","html_url":"https://github.com/rnveach","followers_url":"https://api.github.com/users/rnveach/followers","following_url":"https://api.github.com/users/rnveach/following{/other_user}","gists_url":"https://api.github.com/users/rnveach/gists{/gist_id}","starred_url":"https://api.github.com/users/rnveach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnveach/subscriptions","organizations_url":"https://api.github.com/users/rnveach/orgs","repos_url":"https://api.github.com/users/rnveach/repos","events_url":"https://api.github.com/users/rnveach/events{/privacy}","received_events_url":"https://api.github.com/users/rnveach/received_events","type":"User","site_admin":false},"assignees":[{"login":"rnveach","id":5427943,"node_id":"MDQ6VXNlcjU0Mjc5NDM=","avatar_url":"https://avatars1.githubusercontent.com/u/5427943?v=4","gravatar_id":"","url":"https://api.github.com/users/rnveach","html_url":"https://github.com/rnveach","followers_url":"https://api.github.com/users/rnveach/followers","following_url":"https://api.github.com/users/rnveach/following{/other_user}","gists_url":"https://api.github.com/users/rnveach/gists{/gist_id}","starred_url":"https://api.github.com/users/rnveach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnveach/subscriptions","organizations_url":"https://api.github.com/users/rnveach/orgs","repos_url":"https://api.github.com/users/rnveach/repos","events_url":"https://api.github.com/users/rnveach/events{/privacy}","received_events_url":"https://api.github.com/users/rnveach/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883/commits","review_comments_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883/comments","review_comment_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/5883/comments","statuses_url":"https://api.github.com/repos/checkstyle/checkstyle/statuses/02208f8cfeb79772ac49bb5e807d67fd1ae35854","head":{"label":"timurt:102","ref":"102","sha":"02208f8cfeb79772ac49bb5e807d67fd1ae35854","user":{"login":"timurt","id":1443064,"node_id":"MDQ6VXNlcjE0NDMwNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1443064?v=4","gravatar_id":"","url":"https://api.github.com/users/timurt","html_url":"https://github.com/timurt","followers_url":"https://api.github.com/users/timurt/followers","following_url":"https://api.github.com/users/timurt/following{/other_user}","gists_url":"https://api.github.com/users/timurt/gists{/gist_id}","starred_url":"https://api.github.com/users/timurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timurt/subscriptions","organizations_url":"https://api.github.com/users/timurt/orgs","repos_url":"https://api.github.com/users/timurt/repos","events_url":"https://api.github.com/users/timurt/events{/privacy}","received_events_url":"https://api.github.com/users/timurt/received_events","type":"User","site_admin":false},"repo":{"id":85094126,"node_id":"MDEwOlJlcG9zaXRvcnk4NTA5NDEyNg==","name":"checkstyle","full_name":"timurt/checkstyle","owner":{"login":"timurt","id":1443064,"node_id":"MDQ6VXNlcjE0NDMwNjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1443064?v=4","gravatar_id":"","url":"https://api.github.com/users/timurt","html_url":"https://github.com/timurt","followers_url":"https://api.github.com/users/timurt/followers","following_url":"https://api.github.com/users/timurt/following{/other_user}","gists_url":"https://api.github.com/users/timurt/gists{/gist_id}","starred_url":"https://api.github.com/users/timurt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timurt/subscriptions","organizations_url":"https://api.github.com/users/timurt/orgs","repos_url":"https://api.github.com/users/timurt/repos","events_url":"https://api.github.com/users/timurt/events{/privacy}","received_events_url":"https://api.github.com/users/timurt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timurt/checkstyle","description":"Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.","fork":true,"url":"https://api.github.com/repos/timurt/checkstyle","forks_url":"https://api.github.com/repos/timurt/checkstyle/forks","keys_url":"https://api.github.com/repos/timurt/checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timurt/checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timurt/checkstyle/teams","hooks_url":"https://api.github.com/repos/timurt/checkstyle/hooks","issue_events_url":"https://api.github.com/repos/timurt/checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/timurt/checkstyle/events","assignees_url":"https://api.github.com/repos/timurt/checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/timurt/checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/timurt/checkstyle/tags","blobs_url":"https://api.github.com/repos/timurt/checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timurt/checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timurt/checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/timurt/checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timurt/checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/timurt/checkstyle/languages","stargazers_url":"https://api.github.com/repos/timurt/checkstyle/stargazers","contributors_url":"https://api.github.com/repos/timurt/checkstyle/contributors","subscribers_url":"https://api.github.com/repos/timurt/checkstyle/subscribers","subscription_url":"https://api.github.com/repos/timurt/checkstyle/subscription","commits_url":"https://api.github.com/repos/timurt/checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/timurt/checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/timurt/checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/timurt/checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/timurt/checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/timurt/checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timurt/checkstyle/merges","archive_url":"https://api.github.com/repos/timurt/checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timurt/checkstyle/downloads","issues_url":"https://api.github.com/repos/timurt/checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/timurt/checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/timurt/checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/timurt/checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timurt/checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/timurt/checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/timurt/checkstyle/deployments","created_at":"2017-03-15T16:10:41Z","updated_at":"2017-03-15T16:10:48Z","pushed_at":"2018-06-28T14:10:51Z","git_url":"git://github.com/timurt/checkstyle.git","ssh_url":"git@github.com:timurt/checkstyle.git","clone_url":"https://github.com/timurt/checkstyle.git","svn_url":"https://github.com/timurt/checkstyle","homepage":"http://checkstyle.sourceforge.net/","size":59066,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"checkstyle:master","ref":"master","sha":"3835575706d8240b3ec054d17ed48f692b168611","user":{"login":"checkstyle","id":5179750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk3NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5179750?v=4","gravatar_id":"","url":"https://api.github.com/users/checkstyle","html_url":"https://github.com/checkstyle","followers_url":"https://api.github.com/users/checkstyle/followers","following_url":"https://api.github.com/users/checkstyle/following{/other_user}","gists_url":"https://api.github.com/users/checkstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/checkstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/checkstyle/subscriptions","organizations_url":"https://api.github.com/users/checkstyle/orgs","repos_url":"https://api.github.com/users/checkstyle/repos","events_url":"https://api.github.com/users/checkstyle/events{/privacy}","received_events_url":"https://api.github.com/users/checkstyle/received_events","type":"Organization","site_admin":false},"repo":{"id":12499251,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQ5OTI1MQ==","name":"checkstyle","full_name":"checkstyle/checkstyle","owner":{"login":"checkstyle","id":5179750,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk3NTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5179750?v=4","gravatar_id":"","url":"https://api.github.com/users/checkstyle","html_url":"https://github.com/checkstyle","followers_url":"https://api.github.com/users/checkstyle/followers","following_url":"https://api.github.com/users/checkstyle/following{/other_user}","gists_url":"https://api.github.com/users/checkstyle/gists{/gist_id}","starred_url":"https://api.github.com/users/checkstyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/checkstyle/subscriptions","organizations_url":"https://api.github.com/users/checkstyle/orgs","repos_url":"https://api.github.com/users/checkstyle/repos","events_url":"https://api.github.com/users/checkstyle/events{/privacy}","received_events_url":"https://api.github.com/users/checkstyle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/checkstyle/checkstyle","description":"Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.","fork":false,"url":"https://api.github.com/repos/checkstyle/checkstyle","forks_url":"https://api.github.com/repos/checkstyle/checkstyle/forks","keys_url":"https://api.github.com/repos/checkstyle/checkstyle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/checkstyle/checkstyle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/checkstyle/checkstyle/teams","hooks_url":"https://api.github.com/repos/checkstyle/checkstyle/hooks","issue_events_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/events{/number}","events_url":"https://api.github.com/repos/checkstyle/checkstyle/events","assignees_url":"https://api.github.com/repos/checkstyle/checkstyle/assignees{/user}","branches_url":"https://api.github.com/repos/checkstyle/checkstyle/branches{/branch}","tags_url":"https://api.github.com/repos/checkstyle/checkstyle/tags","blobs_url":"https://api.github.com/repos/checkstyle/checkstyle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/checkstyle/checkstyle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/checkstyle/checkstyle/git/refs{/sha}","trees_url":"https://api.github.com/repos/checkstyle/checkstyle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/checkstyle/checkstyle/statuses/{sha}","languages_url":"https://api.github.com/repos/checkstyle/checkstyle/languages","stargazers_url":"https://api.github.com/repos/checkstyle/checkstyle/stargazers","contributors_url":"https://api.github.com/repos/checkstyle/checkstyle/contributors","subscribers_url":"https://api.github.com/repos/checkstyle/checkstyle/subscribers","subscription_url":"https://api.github.com/repos/checkstyle/checkstyle/subscription","commits_url":"https://api.github.com/repos/checkstyle/checkstyle/commits{/sha}","git_commits_url":"https://api.github.com/repos/checkstyle/checkstyle/git/commits{/sha}","comments_url":"https://api.github.com/repos/checkstyle/checkstyle/comments{/number}","issue_comment_url":"https://api.github.com/repos/checkstyle/checkstyle/issues/comments{/number}","contents_url":"https://api.github.com/repos/checkstyle/checkstyle/contents/{+path}","compare_url":"https://api.github.com/repos/checkstyle/checkstyle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/checkstyle/checkstyle/merges","archive_url":"https://api.github.com/repos/checkstyle/checkstyle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/checkstyle/checkstyle/downloads","issues_url":"https://api.github.com/repos/checkstyle/checkstyle/issues{/number}","pulls_url":"https://api.github.com/repos/checkstyle/checkstyle/pulls{/number}","milestones_url":"https://api.github.com/repos/checkstyle/checkstyle/milestones{/number}","notifications_url":"https://api.github.com/repos/checkstyle/checkstyle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/checkstyle/checkstyle/labels{/name}","releases_url":"https://api.github.com/repos/checkstyle/checkstyle/releases{/id}","deployments_url":"https://api.github.com/repos/checkstyle/checkstyle/deployments","created_at":"2013-08-31T02:05:05Z","updated_at":"2018-06-28T12:25:07Z","pushed_at":"2018-06-28T14:10:58Z","git_url":"git://github.com/checkstyle/checkstyle.git","ssh_url":"git@github.com:checkstyle/checkstyle.git","clone_url":"https://github.com/checkstyle/checkstyle.git","svn_url":"https://github.com/checkstyle/checkstyle","homepage":"https://checkstyle.org/","size":58902,"stargazers_count":3743,"watchers_count":3743,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6491,"mirror_url":null,"archived":false,"open_issues_count":466,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":6491,"open_issues":466,"watchers":3743,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883"},"html":{"href":"https://github.com/checkstyle/checkstyle/pull/5883"},"issue":{"href":"https://api.github.com/repos/checkstyle/checkstyle/issues/5883"},"comments":{"href":"https://api.github.com/repos/checkstyle/checkstyle/issues/5883/comments"},"review_comments":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883/comments"},"review_comment":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/checkstyle/checkstyle/pulls/5883/commits"},"statuses":{"href":"https://api.github.com/repos/checkstyle/checkstyle/statuses/02208f8cfeb79772ac49bb5e807d67fd1ae35854"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"timurt"}}