{"action":"closed","number":2202,"pull_request":{"url":"https://api.github.com/repos/eslint/eslint/pulls/2202","id":32369961,"html_url":"https://github.com/eslint/eslint/pull/2202","diff_url":"https://github.com/eslint/eslint/pull/2202.diff","patch_url":"https://github.com/eslint/eslint/pull/2202.patch","issue_url":"https://api.github.com/repos/eslint/eslint/issues/2202","number":2202,"state":"closed","locked":false,"title":"New: operator-linebreak rule (fixes #1405)","user":{"login":"BenoitZugmeyer","id":61787,"avatar_url":"https://avatars.githubusercontent.com/u/61787?v=3","gravatar_id":"","url":"https://api.github.com/users/BenoitZugmeyer","html_url":"https://github.com/BenoitZugmeyer","followers_url":"https://api.github.com/users/BenoitZugmeyer/followers","following_url":"https://api.github.com/users/BenoitZugmeyer/following{/other_user}","gists_url":"https://api.github.com/users/BenoitZugmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/BenoitZugmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenoitZugmeyer/subscriptions","organizations_url":"https://api.github.com/users/BenoitZugmeyer/orgs","repos_url":"https://api.github.com/users/BenoitZugmeyer/repos","events_url":"https://api.github.com/users/BenoitZugmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/BenoitZugmeyer/received_events","type":"User","site_admin":false},"body":"This is the follow-up of the pull-request #2175 for the ticket #1405 .\r\n\r\nChanges since the previous pull-request:\r\n* Renamed the rule from `binop-style` to `operator-linebreak` (I didn't rename it to `op-linebrak` as the rule `operator-assignment` spells \"operator\" without abbreviating it)\r\n* Renamed options from `last` and `first` to `after` and `before`\r\n* Rephrased the rule small description in README.md\r\n* Rephrased the rule description in its documentation, to be about the style instead of the rule itself.\r\n* Removed exceptions (could be readded later if needed)\r\n* Added line and column numbers in tests\r\n* Used `options` instead of `args` in tests\r\n* Rebased on current master branch\r\n\r\nReady for a new batch of feedbacks!\r\n\r\nEDIT: I didn't add the \"lone\" or \"both\" third option to enforce operators to be alone on the new line, because I've never seen this practice and I can't find any argument in favor of using it to put in the rule description.","created_at":"2015-03-31T21:53:11Z","updated_at":"2015-04-01T11:58:02Z","closed_at":"2015-04-01T11:58:02Z","merged_at":null,"merge_commit_sha":"5b8d78d780fa286ecf5f368d908713efb5fdb8ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eslint/eslint/pulls/2202/commits","review_comments_url":"https://api.github.com/repos/eslint/eslint/pulls/2202/comments","review_comment_url":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eslint/eslint/issues/2202/comments","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/98feefec9df987947208b600e34637e1b9d17b71","head":{"label":"BenoitZugmeyer:operator-linebreak","ref":"operator-linebreak","sha":"98feefec9df987947208b600e34637e1b9d17b71","user":{"login":"BenoitZugmeyer","id":61787,"avatar_url":"https://avatars.githubusercontent.com/u/61787?v=3","gravatar_id":"","url":"https://api.github.com/users/BenoitZugmeyer","html_url":"https://github.com/BenoitZugmeyer","followers_url":"https://api.github.com/users/BenoitZugmeyer/followers","following_url":"https://api.github.com/users/BenoitZugmeyer/following{/other_user}","gists_url":"https://api.github.com/users/BenoitZugmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/BenoitZugmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenoitZugmeyer/subscriptions","organizations_url":"https://api.github.com/users/BenoitZugmeyer/orgs","repos_url":"https://api.github.com/users/BenoitZugmeyer/repos","events_url":"https://api.github.com/users/BenoitZugmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/BenoitZugmeyer/received_events","type":"User","site_admin":false},"repo":{"id":33079006,"name":"eslint","full_name":"BenoitZugmeyer/eslint","owner":{"login":"BenoitZugmeyer","id":61787,"avatar_url":"https://avatars.githubusercontent.com/u/61787?v=3","gravatar_id":"","url":"https://api.github.com/users/BenoitZugmeyer","html_url":"https://github.com/BenoitZugmeyer","followers_url":"https://api.github.com/users/BenoitZugmeyer/followers","following_url":"https://api.github.com/users/BenoitZugmeyer/following{/other_user}","gists_url":"https://api.github.com/users/BenoitZugmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/BenoitZugmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BenoitZugmeyer/subscriptions","organizations_url":"https://api.github.com/users/BenoitZugmeyer/orgs","repos_url":"https://api.github.com/users/BenoitZugmeyer/repos","events_url":"https://api.github.com/users/BenoitZugmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/BenoitZugmeyer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BenoitZugmeyer/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":true,"url":"https://api.github.com/repos/BenoitZugmeyer/eslint","forks_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/forks","keys_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/teams","hooks_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/hooks","issue_events_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/events","assignees_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/tags","blobs_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/languages","stargazers_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/stargazers","contributors_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/contributors","subscribers_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/subscribers","subscription_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/subscription","commits_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/merges","archive_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/downloads","issues_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/labels{/name}","releases_url":"https://api.github.com/repos/BenoitZugmeyer/eslint/releases{/id}","created_at":"2015-03-29T15:52:29Z","updated_at":"2015-04-01T11:46:44Z","pushed_at":"2015-04-01T11:50:55Z","git_url":"git://github.com/BenoitZugmeyer/eslint.git","ssh_url":"git@github.com:BenoitZugmeyer/eslint.git","clone_url":"https://github.com/BenoitZugmeyer/eslint.git","svn_url":"https://github.com/BenoitZugmeyer/eslint","homepage":"http://eslint.org","size":4617,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"eslint:master","ref":"master","sha":"b9dc3540dc1da165b17d5d5632d3f21454a3c687","user":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"repo":{"id":11061773,"name":"eslint","full_name":"eslint/eslint","owner":{"login":"eslint","id":6019716,"avatar_url":"https://avatars.githubusercontent.com/u/6019716?v=3","gravatar_id":"","url":"https://api.github.com/users/eslint","html_url":"https://github.com/eslint","followers_url":"https://api.github.com/users/eslint/followers","following_url":"https://api.github.com/users/eslint/following{/other_user}","gists_url":"https://api.github.com/users/eslint/gists{/gist_id}","starred_url":"https://api.github.com/users/eslint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eslint/subscriptions","organizations_url":"https://api.github.com/users/eslint/orgs","repos_url":"https://api.github.com/users/eslint/repos","events_url":"https://api.github.com/users/eslint/events{/privacy}","received_events_url":"https://api.github.com/users/eslint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eslint/eslint","description":"A fully pluggable tool for identifying and reporting on patterns in JavaScript.","fork":false,"url":"https://api.github.com/repos/eslint/eslint","forks_url":"https://api.github.com/repos/eslint/eslint/forks","keys_url":"https://api.github.com/repos/eslint/eslint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eslint/eslint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eslint/eslint/teams","hooks_url":"https://api.github.com/repos/eslint/eslint/hooks","issue_events_url":"https://api.github.com/repos/eslint/eslint/issues/events{/number}","events_url":"https://api.github.com/repos/eslint/eslint/events","assignees_url":"https://api.github.com/repos/eslint/eslint/assignees{/user}","branches_url":"https://api.github.com/repos/eslint/eslint/branches{/branch}","tags_url":"https://api.github.com/repos/eslint/eslint/tags","blobs_url":"https://api.github.com/repos/eslint/eslint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eslint/eslint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eslint/eslint/git/refs{/sha}","trees_url":"https://api.github.com/repos/eslint/eslint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eslint/eslint/statuses/{sha}","languages_url":"https://api.github.com/repos/eslint/eslint/languages","stargazers_url":"https://api.github.com/repos/eslint/eslint/stargazers","contributors_url":"https://api.github.com/repos/eslint/eslint/contributors","subscribers_url":"https://api.github.com/repos/eslint/eslint/subscribers","subscription_url":"https://api.github.com/repos/eslint/eslint/subscription","commits_url":"https://api.github.com/repos/eslint/eslint/commits{/sha}","git_commits_url":"https://api.github.com/repos/eslint/eslint/git/commits{/sha}","comments_url":"https://api.github.com/repos/eslint/eslint/comments{/number}","issue_comment_url":"https://api.github.com/repos/eslint/eslint/issues/comments{/number}","contents_url":"https://api.github.com/repos/eslint/eslint/contents/{+path}","compare_url":"https://api.github.com/repos/eslint/eslint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eslint/eslint/merges","archive_url":"https://api.github.com/repos/eslint/eslint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eslint/eslint/downloads","issues_url":"https://api.github.com/repos/eslint/eslint/issues{/number}","pulls_url":"https://api.github.com/repos/eslint/eslint/pulls{/number}","milestones_url":"https://api.github.com/repos/eslint/eslint/milestones{/number}","notifications_url":"https://api.github.com/repos/eslint/eslint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eslint/eslint/labels{/name}","releases_url":"https://api.github.com/repos/eslint/eslint/releases{/id}","created_at":"2013-06-29T23:59:48Z","updated_at":"2015-04-01T11:43:49Z","pushed_at":"2015-04-01T11:55:38Z","git_url":"git://github.com/eslint/eslint.git","ssh_url":"git@github.com:eslint/eslint.git","clone_url":"https://github.com/eslint/eslint.git","svn_url":"https://github.com/eslint/eslint","homepage":"http://eslint.org","size":15819,"stargazers_count":1929,"watchers_count":1929,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":330,"mirror_url":null,"open_issues_count":115,"forks":330,"open_issues":115,"watchers":1929,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2202"},"html":{"href":"https://github.com/eslint/eslint/pull/2202"},"issue":{"href":"https://api.github.com/repos/eslint/eslint/issues/2202"},"comments":{"href":"https://api.github.com/repos/eslint/eslint/issues/2202/comments"},"review_comments":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2202/comments"},"review_comment":{"href":"https://api.github.com/repos/eslint/eslint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eslint/eslint/pulls/2202/commits"},"statuses":{"href":"https://api.github.com/repos/eslint/eslint/statuses/98feefec9df987947208b600e34637e1b9d17b71"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":4,"review_comments":5,"commits":1,"additions":388,"deletions":0,"changed_files":6}}