{"action":"closed","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/6725","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/6725/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/6725/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/6725/events","html_url":"https://github.com/elixir-lang/elixir/issues/6725","id":263895226,"number":6725,"title":"Code formatter re arranges comments in structs which causes loss of context","user":{"login":"minhajuddin","id":43916,"avatar_url":"https://avatars3.githubusercontent.com/u/43916?v=4","gravatar_id":"","url":"https://api.github.com/users/minhajuddin","html_url":"https://github.com/minhajuddin","followers_url":"https://api.github.com/users/minhajuddin/followers","following_url":"https://api.github.com/users/minhajuddin/following{/other_user}","gists_url":"https://api.github.com/users/minhajuddin/gists{/gist_id}","starred_url":"https://api.github.com/users/minhajuddin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhajuddin/subscriptions","organizations_url":"https://api.github.com/users/minhajuddin/orgs","repos_url":"https://api.github.com/users/minhajuddin/repos","events_url":"https://api.github.com/users/minhajuddin/events{/privacy}","received_events_url":"https://api.github.com/users/minhajuddin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-09T13:28:23Z","updated_at":"2017-10-10T23:00:35Z","closed_at":"2017-10-10T23:00:35Z","author_association":"NONE","body":"Code formatter re arranges comments in structs which causes loss of context\r\n\r\n### Environment\r\n\r\n* Elixir & Erlang versions (elixir --version): Erlang 20, Elixir 1.6.0-dev bb26227f7\r\n* Operating system: Ubuntu 16.04\r\n\r\n### Current behavior\r\n\r\nBefore formatting my code looks like below:\r\n\r\n```\r\n  defmodule Request do\r\n    defstruct uri: %URI{},\r\n      method: :get,\r\n      http_version: :http1_1,\r\n      headers: [], # e.g. [{\"User-Agent\", \"Danny\"}, {\"Accept\", \"text/html\"}]\r\n      body: [] # iodata/iolist\r\n  end\r\n```\r\nAfter formatting my code looks like below:\r\n\r\n```\r\n  defmodule Request do\r\n    # e.g. [{\"User-Agent\", \"Danny\"}, {\"Accept\", \"text/html\"}]\r\n    # iodata/iolist\r\n    defstruct uri: %URI{}, method: :get, http_version: :http1_1, headers: [], body: []\r\n  end\r\n```\r\n\r\n### Expected behavior\r\nAs you can see the comments are moved from their place to the top of the struct definition. This causes in the loss of context\r\n"}}
{"actor":{"display_login":"josevalim"}}