{"action":"created","comment":{"url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/comments/91478479","pull_request_review_id":11985992,"id":91478479,"diff_hunk":"@@ -422,6 +422,32 @@ If you're looking for other projects to contribute to please see the\n   end\n   ```\n \n+* <a name=\"with-clauses\"></a>\n+  Indent and align successive `with` clauses.\n+  Put the `do:` argument on a new line, indented normally.\n+  <sup>[[link](#with-clauses)]</sup>\n+\n+  ```elixir\n+  with {:ok, foo} <- fetch(opts, :foo),\n+       {:ok, bar} <- fetch(opts, :bar),\n+    do: {:ok, foo, bar}\n+  ```\n+\n+* <a name=\"with-else\"></a>\n+  If the `with` expression has a `do` block with more than one line, or has an\n+  `else` option, use multiline syntax.\n+  <sup>[[link](#with-else)]</sup>\n+\n+  ```elixir\n+  with {:ok, foo} <- fetch(opts, :foo),\n+       {:ok, bar} <- fetch(opts, :bar) do\n+    {:ok, foo, bar}\n+  else\n+    :error ->\n+      {:error, :bad_arg}","path":"README.md","position":26,"original_position":26,"commit_id":"da36a40ceaea67943e0761852bcae3d137111025","original_commit_id":"da36a40ceaea67943e0761852bcae3d137111025","user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"body":"Right, there's no rule about this specifically.","created_at":"2016-12-08T09:43:32Z","updated_at":"2016-12-08T09:43:32Z","html_url":"https://github.com/christopheradams/elixir_style_guide/pull/124#discussion_r91478479","pull_request_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/comments/91478479"},"html":{"href":"https://github.com/christopheradams/elixir_style_guide/pull/124#discussion_r91478479"},"pull_request":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124","id":96466199,"html_url":"https://github.com/christopheradams/elixir_style_guide/pull/124","diff_url":"https://github.com/christopheradams/elixir_style_guide/pull/124.diff","patch_url":"https://github.com/christopheradams/elixir_style_guide/pull/124.patch","issue_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/124","number":124,"state":"open","locked":false,"title":"Add with expression indentation rules","user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"body":"Adds indentation rules for the `with` special form, styled after the docs, supported by emacs-elixir, and [informally endorsed](https://github.com/elixir-lang/emacs-elixir/pull/348#issuecomment-264713973).\r\n\r\n* does not include \"not preferred\" examples. it seems clear enough without them?\r\n* does not show (yet) how to comment above each `with` clause using parentheses\r\n\r\nAddresses issue #101","created_at":"2016-12-05T04:00:52Z","updated_at":"2016-12-08T09:43:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7278da7c9d5255724b1143cdc79a6a523b1b8b35","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124/commits","review_comments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124/comments","review_comment_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/124/comments","statuses_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/statuses/da36a40ceaea67943e0761852bcae3d137111025","head":{"label":"christopheradams:with-fea","ref":"with-fea","sha":"da36a40ceaea67943e0761852bcae3d137111025","user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"repo":{"id":13060236,"name":"elixir_style_guide","full_name":"christopheradams/elixir_style_guide","owner":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/christopheradams/elixir_style_guide","description":"A community driven style guide for Elixir","fork":false,"url":"https://api.github.com/repos/christopheradams/elixir_style_guide","forks_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/forks","keys_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/teams","hooks_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/hooks","issue_events_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/events{/number}","events_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/events","assignees_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/assignees{/user}","branches_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/branches{/branch}","tags_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/tags","blobs_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/statuses/{sha}","languages_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/languages","stargazers_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/stargazers","contributors_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/contributors","subscribers_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/subscribers","subscription_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/subscription","commits_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/contents/{+path}","compare_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/merges","archive_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/downloads","issues_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues{/number}","pulls_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls{/number}","milestones_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/milestones{/number}","notifications_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/labels{/name}","releases_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/releases{/id}","deployments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/deployments","created_at":"2013-09-24T09:35:30Z","updated_at":"2016-12-08T07:33:22Z","pushed_at":"2016-12-08T07:48:11Z","git_url":"git://github.com/christopheradams/elixir_style_guide.git","ssh_url":"git@github.com:christopheradams/elixir_style_guide.git","clone_url":"https://github.com/christopheradams/elixir_style_guide.git","svn_url":"https://github.com/christopheradams/elixir_style_guide","homepage":null,"size":213,"stargazers_count":1630,"watchers_count":1630,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":20,"forks":120,"open_issues":20,"watchers":1630,"default_branch":"master"}},"base":{"label":"christopheradams:master","ref":"master","sha":"dd21dcdfbd4cee6a31137bafb19ba46ddb18c608","user":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"repo":{"id":13060236,"name":"elixir_style_guide","full_name":"christopheradams/elixir_style_guide","owner":{"login":"christopheradams","id":60711,"avatar_url":"https://avatars.githubusercontent.com/u/60711?v=3","gravatar_id":"","url":"https://api.github.com/users/christopheradams","html_url":"https://github.com/christopheradams","followers_url":"https://api.github.com/users/christopheradams/followers","following_url":"https://api.github.com/users/christopheradams/following{/other_user}","gists_url":"https://api.github.com/users/christopheradams/gists{/gist_id}","starred_url":"https://api.github.com/users/christopheradams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopheradams/subscriptions","organizations_url":"https://api.github.com/users/christopheradams/orgs","repos_url":"https://api.github.com/users/christopheradams/repos","events_url":"https://api.github.com/users/christopheradams/events{/privacy}","received_events_url":"https://api.github.com/users/christopheradams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/christopheradams/elixir_style_guide","description":"A community driven style guide for Elixir","fork":false,"url":"https://api.github.com/repos/christopheradams/elixir_style_guide","forks_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/forks","keys_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/teams","hooks_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/hooks","issue_events_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/events{/number}","events_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/events","assignees_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/assignees{/user}","branches_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/branches{/branch}","tags_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/tags","blobs_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/statuses/{sha}","languages_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/languages","stargazers_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/stargazers","contributors_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/contributors","subscribers_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/subscribers","subscription_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/subscription","commits_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/contents/{+path}","compare_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/merges","archive_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/downloads","issues_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues{/number}","pulls_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls{/number}","milestones_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/milestones{/number}","notifications_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/labels{/name}","releases_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/releases{/id}","deployments_url":"https://api.github.com/repos/christopheradams/elixir_style_guide/deployments","created_at":"2013-09-24T09:35:30Z","updated_at":"2016-12-08T07:33:22Z","pushed_at":"2016-12-08T07:48:11Z","git_url":"git://github.com/christopheradams/elixir_style_guide.git","ssh_url":"git@github.com:christopheradams/elixir_style_guide.git","clone_url":"https://github.com/christopheradams/elixir_style_guide.git","svn_url":"https://github.com/christopheradams/elixir_style_guide","homepage":null,"size":213,"stargazers_count":1630,"watchers_count":1630,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":120,"mirror_url":null,"open_issues_count":20,"forks":120,"open_issues":20,"watchers":1630,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124"},"html":{"href":"https://github.com/christopheradams/elixir_style_guide/pull/124"},"issue":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/124"},"comments":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/christopheradams/elixir_style_guide/statuses/da36a40ceaea67943e0761852bcae3d137111025"}}}}
{"actor":{"display_login":"christopheradams"}}