{"action":"created","comment":{"url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/comments/31870801","id":31870801,"diff_hunk":"@@ -1,46 +1,54 @@\n import argparse\n import json\n import sys\n+import locale\n \n from .lint import lint_file\n \n \n-def _main(filepath, format='text', stream=sys.stdout, encoding=None):\n+def _main(filepaths, format, encoding, stream=sys.stdout):\n     # Read and lint the file\n-    errors = lint_file(filepath, encoding=encoding)\n+    file_errors = [lint_file(f, encoding=encoding) for f in filepaths]\n+    errors_dicts = []","path":"restructuredtext_lint/cli.py","position":14,"original_position":14,"commit_id":"eb3dfbaf7fa1ad3fb1a64a2a42dbb8b923e185f4","original_commit_id":"eb3dfbaf7fa1ad3fb1a64a2a42dbb8b923e185f4","user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"body":"This should be `error_dicts` as it should be a list of dictionaries. We shouldn't be pluralizing both words, only the second one.","created_at":"2015-06-06T19:29:12Z","updated_at":"2015-06-06T19:29:12Z","html_url":"https://github.com/twolfson/restructuredtext-lint/pull/19#discussion_r31870801","pull_request_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/comments/31870801"},"html":{"href":"https://github.com/twolfson/restructuredtext-lint/pull/19#discussion_r31870801"},"pull_request":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19","id":37088167,"html_url":"https://github.com/twolfson/restructuredtext-lint/pull/19","diff_url":"https://github.com/twolfson/restructuredtext-lint/pull/19.diff","patch_url":"https://github.com/twolfson/restructuredtext-lint/pull/19.patch","issue_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/19","number":19,"state":"open","locked":false,"title":"#16 Feature: Possibility to pass many rst files at once","user":{"login":"pwilczynskiclearcode","id":3940860,"avatar_url":"https://avatars.githubusercontent.com/u/3940860?v=3","gravatar_id":"","url":"https://api.github.com/users/pwilczynskiclearcode","html_url":"https://github.com/pwilczynskiclearcode","followers_url":"https://api.github.com/users/pwilczynskiclearcode/followers","following_url":"https://api.github.com/users/pwilczynskiclearcode/following{/other_user}","gists_url":"https://api.github.com/users/pwilczynskiclearcode/gists{/gist_id}","starred_url":"https://api.github.com/users/pwilczynskiclearcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwilczynskiclearcode/subscriptions","organizations_url":"https://api.github.com/users/pwilczynskiclearcode/orgs","repos_url":"https://api.github.com/users/pwilczynskiclearcode/repos","events_url":"https://api.github.com/users/pwilczynskiclearcode/events{/privacy}","received_events_url":"https://api.github.com/users/pwilczynskiclearcode/received_events","type":"User","site_admin":false},"body":"- Added possibility to pass one or many rst files to 'rst-lint' command.\r\n- Moved tests out of the restructuredtext_lint (reduced build package size).","created_at":"2015-06-06T10:02:08Z","updated_at":"2015-06-06T19:29:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5465af5230efcf4a2e9c6033d00fc2ee2d70d7b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19/commits","review_comments_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19/comments","review_comment_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/19/comments","statuses_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/statuses/eb3dfbaf7fa1ad3fb1a64a2a42dbb8b923e185f4","head":{"label":"pwilczynskiclearcode:master","ref":"master","sha":"eb3dfbaf7fa1ad3fb1a64a2a42dbb8b923e185f4","user":{"login":"pwilczynskiclearcode","id":3940860,"avatar_url":"https://avatars.githubusercontent.com/u/3940860?v=3","gravatar_id":"","url":"https://api.github.com/users/pwilczynskiclearcode","html_url":"https://github.com/pwilczynskiclearcode","followers_url":"https://api.github.com/users/pwilczynskiclearcode/followers","following_url":"https://api.github.com/users/pwilczynskiclearcode/following{/other_user}","gists_url":"https://api.github.com/users/pwilczynskiclearcode/gists{/gist_id}","starred_url":"https://api.github.com/users/pwilczynskiclearcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwilczynskiclearcode/subscriptions","organizations_url":"https://api.github.com/users/pwilczynskiclearcode/orgs","repos_url":"https://api.github.com/users/pwilczynskiclearcode/repos","events_url":"https://api.github.com/users/pwilczynskiclearcode/events{/privacy}","received_events_url":"https://api.github.com/users/pwilczynskiclearcode/received_events","type":"User","site_admin":false},"repo":{"id":36975539,"name":"restructuredtext-lint","full_name":"pwilczynskiclearcode/restructuredtext-lint","owner":{"login":"pwilczynskiclearcode","id":3940860,"avatar_url":"https://avatars.githubusercontent.com/u/3940860?v=3","gravatar_id":"","url":"https://api.github.com/users/pwilczynskiclearcode","html_url":"https://github.com/pwilczynskiclearcode","followers_url":"https://api.github.com/users/pwilczynskiclearcode/followers","following_url":"https://api.github.com/users/pwilczynskiclearcode/following{/other_user}","gists_url":"https://api.github.com/users/pwilczynskiclearcode/gists{/gist_id}","starred_url":"https://api.github.com/users/pwilczynskiclearcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwilczynskiclearcode/subscriptions","organizations_url":"https://api.github.com/users/pwilczynskiclearcode/orgs","repos_url":"https://api.github.com/users/pwilczynskiclearcode/repos","events_url":"https://api.github.com/users/pwilczynskiclearcode/events{/privacy}","received_events_url":"https://api.github.com/users/pwilczynskiclearcode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pwilczynskiclearcode/restructuredtext-lint","description":"reStructuredText linter","fork":true,"url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint","forks_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/forks","keys_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/teams","hooks_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/hooks","issue_events_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/issues/events{/number}","events_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/events","assignees_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/assignees{/user}","branches_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/branches{/branch}","tags_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/tags","blobs_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/git/refs{/sha}","trees_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/statuses/{sha}","languages_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/languages","stargazers_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/stargazers","contributors_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/contributors","subscribers_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/subscribers","subscription_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/subscription","commits_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/commits{/sha}","git_commits_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/git/commits{/sha}","comments_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/comments{/number}","issue_comment_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/issues/comments{/number}","contents_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/contents/{+path}","compare_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/merges","archive_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/downloads","issues_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/issues{/number}","pulls_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/pulls{/number}","milestones_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/milestones{/number}","notifications_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/labels{/name}","releases_url":"https://api.github.com/repos/pwilczynskiclearcode/restructuredtext-lint/releases{/id}","created_at":"2015-06-06T10:00:28Z","updated_at":"2015-06-06T10:00:29Z","pushed_at":"2015-06-06T11:46:46Z","git_url":"git://github.com/pwilczynskiclearcode/restructuredtext-lint.git","ssh_url":"git@github.com:pwilczynskiclearcode/restructuredtext-lint.git","clone_url":"https://github.com/pwilczynskiclearcode/restructuredtext-lint.git","svn_url":"https://github.com/pwilczynskiclearcode/restructuredtext-lint","homepage":"","size":182,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"twolfson:master","ref":"master","sha":"875b99fcc47efa26fbbdf638894758d28a6f83a3","user":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"repo":{"id":14612476,"name":"restructuredtext-lint","full_name":"twolfson/restructuredtext-lint","owner":{"login":"twolfson","id":902488,"avatar_url":"https://avatars.githubusercontent.com/u/902488?v=3","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/twolfson/restructuredtext-lint","description":"reStructuredText linter","fork":false,"url":"https://api.github.com/repos/twolfson/restructuredtext-lint","forks_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/forks","keys_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/teams","hooks_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/hooks","issue_events_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/events{/number}","events_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/events","assignees_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/assignees{/user}","branches_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/branches{/branch}","tags_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/tags","blobs_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/git/refs{/sha}","trees_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/statuses/{sha}","languages_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/languages","stargazers_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/stargazers","contributors_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/contributors","subscribers_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/subscribers","subscription_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/subscription","commits_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/commits{/sha}","git_commits_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/git/commits{/sha}","comments_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/comments{/number}","issue_comment_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/comments{/number}","contents_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/contents/{+path}","compare_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/merges","archive_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/downloads","issues_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues{/number}","pulls_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls{/number}","milestones_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/milestones{/number}","notifications_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/labels{/name}","releases_url":"https://api.github.com/repos/twolfson/restructuredtext-lint/releases{/id}","created_at":"2013-11-22T08:26:58Z","updated_at":"2015-06-02T11:56:02Z","pushed_at":"2015-06-06T11:46:46Z","git_url":"git://github.com/twolfson/restructuredtext-lint.git","ssh_url":"git@github.com:twolfson/restructuredtext-lint.git","clone_url":"https://github.com/twolfson/restructuredtext-lint.git","svn_url":"https://github.com/twolfson/restructuredtext-lint","homepage":"","size":626,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19"},"html":{"href":"https://github.com/twolfson/restructuredtext-lint/pull/19"},"issue":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/19"},"comments":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/twolfson/restructuredtext-lint/statuses/eb3dfbaf7fa1ad3fb1a64a2a42dbb8b923e185f4"}}}}