{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/7573","repository_url":"https://api.github.com/repos/elixir-lang/elixir","labels_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7573/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7573/comments","events_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7573/events","html_url":"https://github.com/elixir-lang/elixir/issues/7573","id":316246466,"number":7573,"title":"Formatter does not respect `.formatter.exs` when piping code into it","user":{"login":"bitboxer","id":56195,"avatar_url":"https://avatars2.githubusercontent.com/u/56195?v=4","gravatar_id":"","url":"https://api.github.com/users/bitboxer","html_url":"https://github.com/bitboxer","followers_url":"https://api.github.com/users/bitboxer/followers","following_url":"https://api.github.com/users/bitboxer/following{/other_user}","gists_url":"https://api.github.com/users/bitboxer/gists{/gist_id}","starred_url":"https://api.github.com/users/bitboxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitboxer/subscriptions","organizations_url":"https://api.github.com/users/bitboxer/orgs","repos_url":"https://api.github.com/users/bitboxer/repos","events_url":"https://api.github.com/users/bitboxer/events{/privacy}","received_events_url":"https://api.github.com/users/bitboxer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-20T12:23:18Z","updated_at":"2018-04-23T06:56:23Z","closed_at":"2018-04-20T12:41:35Z","author_association":"NONE","body":"### Environment\r\n\r\n* Elixir & Erlang versions (elixir --version): \r\n\r\n```\r\nErlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]\r\n\r\nElixir 1.6.3 (compiled with OTP 19)\r\n```\r\n\r\n* Operating system: \r\n\r\n```\r\nUbuntu 16.04.4 LTS\r\n```\r\n\r\n### Current behavior\r\n\r\nWhen piping code into the formatter like this:\r\n\r\n```\r\ncat path/to/file.ex | mix format -\r\n```\r\n\r\nit does not respect the local `.formatter.exs`. It also ignores the `--dot-formatter` setting.\r\n\r\nAm I doing something wrong? Is this a bug?\r\n\r\n### Expected behavior\r\n\r\nIt should format the code using the local `.formatter.exs` or at least the one I specify in the params.\r\n"},"comment":{"url":"https://api.github.com/repos/elixir-lang/elixir/issues/comments/383473276","html_url":"https://github.com/elixir-lang/elixir/issues/7573#issuecomment-383473276","issue_url":"https://api.github.com/repos/elixir-lang/elixir/issues/7573","id":383473276,"user":{"login":"bitboxer","id":56195,"avatar_url":"https://avatars2.githubusercontent.com/u/56195?v=4","gravatar_id":"","url":"https://api.github.com/users/bitboxer","html_url":"https://github.com/bitboxer","followers_url":"https://api.github.com/users/bitboxer/followers","following_url":"https://api.github.com/users/bitboxer/following{/other_user}","gists_url":"https://api.github.com/users/bitboxer/gists{/gist_id}","starred_url":"https://api.github.com/users/bitboxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitboxer/subscriptions","organizations_url":"https://api.github.com/users/bitboxer/orgs","repos_url":"https://api.github.com/users/bitboxer/repos","events_url":"https://api.github.com/users/bitboxer/events{/privacy}","received_events_url":"https://api.github.com/users/bitboxer/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T06:56:23Z","updated_at":"2018-04-23T06:56:23Z","author_association":"NONE","body":"Just found time to test this in my local elixir 1.6.4\r\n\r\n```\r\nErlang/OTP 20 [erts-9.3] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]\r\n\r\nElixir 1.6.4 (compiled with OTP 19)\r\n```\r\n\r\nSadly I can't confirm that this works.\r\n\r\nI did this:\r\n\r\n```\r\ncat path/to/file.exs |  mix format --dot-formatter=path/to/.formatter.exs -\r\n```\r\n\r\nAnd it did non respect the config I gave to it. Using \r\n\r\n``\r\nmix format --dot-formatter=path/to/.formatter.exs path/to/file.exs\r\n```\r\n\r\nit worked."}}
{"actor":{"display_login":"bitboxer"}}