{"action":"created","comment":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/24586008","id":24586008,"diff_hunk":"@@ -52,11 +93,38 @@ var assert = require('assert');\n module.exports = function() {};\n \n module.exports.prototype = {\n-    configure: function(requireCapitalizedComments) {\n+    configure: function(options) {\n+        var optionName = this.getOptionName();\n+\n+        var isObject = typeof options === 'object';\n+\n         assert(\n-            requireCapitalizedComments === true,\n-            'requireCapitalizedComments option requires a value of true or should be removed'\n+            options === true ||\n+            isObject,\n+            optionName + ' option requires the value `true` ' +\n+            'or an object with String[] `allExcept` property'\n         );\n+\n+        if (isObject) {\n+            var exceptions = options.allExcept;\n+\n+            // verify items in `allExcept` property in object are string values\n+            assert(\n+                Array.isArray(exceptions) &&\n+                options.allExcept.every(function(el) { return typeof el === 'string'; }),\n+                'Property `allExcept` in ' + optionName + ' should be an array of strings'\n+            );\n+\n+            this._exceptions = {};","path":"lib/rules/require-capitalized-comments.js","position":89,"original_position":89,"commit_id":"7f4ad1cbfa9fe034a7ea826ad45175e5f1e12950","original_commit_id":"7f4ad1cbfa9fe034a7ea826ad45175e5f1e12950","user":{"login":"mikesherov","id":364532,"avatar_url":"https://avatars.githubusercontent.com/u/364532?v=3","gravatar_id":"","url":"https://api.github.com/users/mikesherov","html_url":"https://github.com/mikesherov","followers_url":"https://api.github.com/users/mikesherov/followers","following_url":"https://api.github.com/users/mikesherov/following{/other_user}","gists_url":"https://api.github.com/users/mikesherov/gists{/gist_id}","starred_url":"https://api.github.com/users/mikesherov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikesherov/subscriptions","organizations_url":"https://api.github.com/users/mikesherov/orgs","repos_url":"https://api.github.com/users/mikesherov/repos","events_url":"https://api.github.com/users/mikesherov/events{/privacy}","received_events_url":"https://api.github.com/users/mikesherov/received_events","type":"User","site_admin":false},"body":"just declare this at the top of `configure` so you don't have to do `|| {}` later.","created_at":"2015-02-12T14:58:02Z","updated_at":"2015-02-12T14:58:02Z","html_url":"https://github.com/jscs-dev/node-jscs/pull/1052#discussion_r24586008","pull_request_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052","_links":{"self":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/24586008"},"html":{"href":"https://github.com/jscs-dev/node-jscs/pull/1052#discussion_r24586008"},"pull_request":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052"}}},"pull_request":{"url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052","id":29178778,"html_url":"https://github.com/jscs-dev/node-jscs/pull/1052","diff_url":"https://github.com/jscs-dev/node-jscs/pull/1052.diff","patch_url":"https://github.com/jscs-dev/node-jscs/pull/1052.patch","issue_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1052","number":1052,"state":"open","locked":false,"title":"requireCapitalizedComments: Add `allExcept` option [#1045]","user":{"login":"ashclarke","id":963023,"avatar_url":"https://avatars.githubusercontent.com/u/963023?v=3","gravatar_id":"","url":"https://api.github.com/users/ashclarke","html_url":"https://github.com/ashclarke","followers_url":"https://api.github.com/users/ashclarke/followers","following_url":"https://api.github.com/users/ashclarke/following{/other_user}","gists_url":"https://api.github.com/users/ashclarke/gists{/gist_id}","starred_url":"https://api.github.com/users/ashclarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashclarke/subscriptions","organizations_url":"https://api.github.com/users/ashclarke/orgs","repos_url":"https://api.github.com/users/ashclarke/repos","events_url":"https://api.github.com/users/ashclarke/events{/privacy}","received_events_url":"https://api.github.com/users/ashclarke/received_events","type":"User","site_admin":false},"body":"Should I change the title to say `Closes #1045` instead or `[#1045]`?","created_at":"2015-02-12T13:32:18Z","updated_at":"2015-02-12T14:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00f9b16b13d552c5c4ad34b81e20d47b66798f76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052/commits","review_comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052/comments","review_comment_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1052/comments","statuses_url":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/7f4ad1cbfa9fe034a7ea826ad45175e5f1e12950","head":{"label":"ashclarke:capitalized-comments-except","ref":"capitalized-comments-except","sha":"7f4ad1cbfa9fe034a7ea826ad45175e5f1e12950","user":{"login":"ashclarke","id":963023,"avatar_url":"https://avatars.githubusercontent.com/u/963023?v=3","gravatar_id":"","url":"https://api.github.com/users/ashclarke","html_url":"https://github.com/ashclarke","followers_url":"https://api.github.com/users/ashclarke/followers","following_url":"https://api.github.com/users/ashclarke/following{/other_user}","gists_url":"https://api.github.com/users/ashclarke/gists{/gist_id}","starred_url":"https://api.github.com/users/ashclarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashclarke/subscriptions","organizations_url":"https://api.github.com/users/ashclarke/orgs","repos_url":"https://api.github.com/users/ashclarke/repos","events_url":"https://api.github.com/users/ashclarke/events{/privacy}","received_events_url":"https://api.github.com/users/ashclarke/received_events","type":"User","site_admin":false},"repo":{"id":30695626,"name":"node-jscs","full_name":"ashclarke/node-jscs","owner":{"login":"ashclarke","id":963023,"avatar_url":"https://avatars.githubusercontent.com/u/963023?v=3","gravatar_id":"","url":"https://api.github.com/users/ashclarke","html_url":"https://github.com/ashclarke","followers_url":"https://api.github.com/users/ashclarke/followers","following_url":"https://api.github.com/users/ashclarke/following{/other_user}","gists_url":"https://api.github.com/users/ashclarke/gists{/gist_id}","starred_url":"https://api.github.com/users/ashclarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashclarke/subscriptions","organizations_url":"https://api.github.com/users/ashclarke/orgs","repos_url":"https://api.github.com/users/ashclarke/repos","events_url":"https://api.github.com/users/ashclarke/events{/privacy}","received_events_url":"https://api.github.com/users/ashclarke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashclarke/node-jscs","description":"JavaScript Code Style checker","fork":true,"url":"https://api.github.com/repos/ashclarke/node-jscs","forks_url":"https://api.github.com/repos/ashclarke/node-jscs/forks","keys_url":"https://api.github.com/repos/ashclarke/node-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashclarke/node-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashclarke/node-jscs/teams","hooks_url":"https://api.github.com/repos/ashclarke/node-jscs/hooks","issue_events_url":"https://api.github.com/repos/ashclarke/node-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/ashclarke/node-jscs/events","assignees_url":"https://api.github.com/repos/ashclarke/node-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/ashclarke/node-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/ashclarke/node-jscs/tags","blobs_url":"https://api.github.com/repos/ashclarke/node-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashclarke/node-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashclarke/node-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashclarke/node-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashclarke/node-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/ashclarke/node-jscs/languages","stargazers_url":"https://api.github.com/repos/ashclarke/node-jscs/stargazers","contributors_url":"https://api.github.com/repos/ashclarke/node-jscs/contributors","subscribers_url":"https://api.github.com/repos/ashclarke/node-jscs/subscribers","subscription_url":"https://api.github.com/repos/ashclarke/node-jscs/subscription","commits_url":"https://api.github.com/repos/ashclarke/node-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashclarke/node-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashclarke/node-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashclarke/node-jscs/issues/comments/{number}","contents_url":"https://api.github.com/repos/ashclarke/node-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/ashclarke/node-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashclarke/node-jscs/merges","archive_url":"https://api.github.com/repos/ashclarke/node-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashclarke/node-jscs/downloads","issues_url":"https://api.github.com/repos/ashclarke/node-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/ashclarke/node-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/ashclarke/node-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/ashclarke/node-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashclarke/node-jscs/labels{/name}","releases_url":"https://api.github.com/repos/ashclarke/node-jscs/releases{/id}","created_at":"2015-02-12T09:38:02Z","updated_at":"2015-02-12T09:38:03Z","pushed_at":"2015-02-12T14:35:51Z","git_url":"git://github.com/ashclarke/node-jscs.git","ssh_url":"git@github.com:ashclarke/node-jscs.git","clone_url":"https://github.com/ashclarke/node-jscs.git","svn_url":"https://github.com/ashclarke/node-jscs","homepage":"http://jscs.info/","size":8841,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jscs-dev:master","ref":"master","sha":"69c1f72cf0d287118eb2f9edc98d3450376a820a","user":{"login":"jscs-dev","id":8018201,"avatar_url":"https://avatars.githubusercontent.com/u/8018201?v=3","gravatar_id":"","url":"https://api.github.com/users/jscs-dev","html_url":"https://github.com/jscs-dev","followers_url":"https://api.github.com/users/jscs-dev/followers","following_url":"https://api.github.com/users/jscs-dev/following{/other_user}","gists_url":"https://api.github.com/users/jscs-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jscs-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscs-dev/subscriptions","organizations_url":"https://api.github.com/users/jscs-dev/orgs","repos_url":"https://api.github.com/users/jscs-dev/repos","events_url":"https://api.github.com/users/jscs-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jscs-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":10697582,"name":"node-jscs","full_name":"jscs-dev/node-jscs","owner":{"login":"jscs-dev","id":8018201,"avatar_url":"https://avatars.githubusercontent.com/u/8018201?v=3","gravatar_id":"","url":"https://api.github.com/users/jscs-dev","html_url":"https://github.com/jscs-dev","followers_url":"https://api.github.com/users/jscs-dev/followers","following_url":"https://api.github.com/users/jscs-dev/following{/other_user}","gists_url":"https://api.github.com/users/jscs-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/jscs-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jscs-dev/subscriptions","organizations_url":"https://api.github.com/users/jscs-dev/orgs","repos_url":"https://api.github.com/users/jscs-dev/repos","events_url":"https://api.github.com/users/jscs-dev/events{/privacy}","received_events_url":"https://api.github.com/users/jscs-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jscs-dev/node-jscs","description":"JavaScript Code Style checker","fork":false,"url":"https://api.github.com/repos/jscs-dev/node-jscs","forks_url":"https://api.github.com/repos/jscs-dev/node-jscs/forks","keys_url":"https://api.github.com/repos/jscs-dev/node-jscs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jscs-dev/node-jscs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jscs-dev/node-jscs/teams","hooks_url":"https://api.github.com/repos/jscs-dev/node-jscs/hooks","issue_events_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/events{/number}","events_url":"https://api.github.com/repos/jscs-dev/node-jscs/events","assignees_url":"https://api.github.com/repos/jscs-dev/node-jscs/assignees{/user}","branches_url":"https://api.github.com/repos/jscs-dev/node-jscs/branches{/branch}","tags_url":"https://api.github.com/repos/jscs-dev/node-jscs/tags","blobs_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/{sha}","languages_url":"https://api.github.com/repos/jscs-dev/node-jscs/languages","stargazers_url":"https://api.github.com/repos/jscs-dev/node-jscs/stargazers","contributors_url":"https://api.github.com/repos/jscs-dev/node-jscs/contributors","subscribers_url":"https://api.github.com/repos/jscs-dev/node-jscs/subscribers","subscription_url":"https://api.github.com/repos/jscs-dev/node-jscs/subscription","commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jscs-dev/node-jscs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jscs-dev/node-jscs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues/comments/{number}","contents_url":"https://api.github.com/repos/jscs-dev/node-jscs/contents/{+path}","compare_url":"https://api.github.com/repos/jscs-dev/node-jscs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jscs-dev/node-jscs/merges","archive_url":"https://api.github.com/repos/jscs-dev/node-jscs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jscs-dev/node-jscs/downloads","issues_url":"https://api.github.com/repos/jscs-dev/node-jscs/issues{/number}","pulls_url":"https://api.github.com/repos/jscs-dev/node-jscs/pulls{/number}","milestones_url":"https://api.github.com/repos/jscs-dev/node-jscs/milestones{/number}","notifications_url":"https://api.github.com/repos/jscs-dev/node-jscs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jscs-dev/node-jscs/labels{/name}","releases_url":"https://api.github.com/repos/jscs-dev/node-jscs/releases{/id}","created_at":"2013-06-14T20:53:48Z","updated_at":"2015-02-12T13:47:11Z","pushed_at":"2015-02-12T04:48:49Z","git_url":"git://github.com/jscs-dev/node-jscs.git","ssh_url":"git@github.com:jscs-dev/node-jscs.git","clone_url":"https://github.com/jscs-dev/node-jscs.git","svn_url":"https://github.com/jscs-dev/node-jscs","homepage":"http://jscs.info/","size":8841,"stargazers_count":2502,"watchers_count":2502,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":250,"mirror_url":null,"open_issues_count":111,"forks":250,"open_issues":111,"watchers":2502,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052"},"html":{"href":"https://github.com/jscs-dev/node-jscs/pull/1052"},"issue":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1052"},"comments":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/issues/1052/comments"},"review_comments":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052/comments"},"review_comment":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/pulls/1052/commits"},"statuses":{"href":"https://api.github.com/repos/jscs-dev/node-jscs/statuses/7f4ad1cbfa9fe034a7ea826ad45175e5f1e12950"}}}}