{"action":"created","issue":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/315","repository_url":"https://api.github.com/repos/olafurpg/scalafmt","labels_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/315/comments","events_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/315/events","html_url":"https://github.com/olafurpg/scalafmt/issues/315","id":158854912,"number":315,"title":"Feature request: Dynamic style configuration","user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/olafurpg/scalafmt/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-07T07:14:56Z","updated_at":"2016-06-07T08:30:39Z","closed_at":null,"body":"Dynamic style configuration allows you to change the style with CLI flags inside comments. For example, increase `--maxColumn` or temporarily enable vertical alignment.\r\n\r\nOriginal:\r\n```scala\r\nval x = 1\r\nval xx = 2\r\n// --style defaultWithAlign\r\nval xxx  = 3\r\nval xxxx = 4\r\n// --style default\r\nval xxxxx = 5\r\nval xxxxxx = 6\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/olafurpg/scalafmt/issues/comments/224214324","html_url":"https://github.com/olafurpg/scalafmt/issues/315#issuecomment-224214324","issue_url":"https://api.github.com/repos/olafurpg/scalafmt/issues/315","id":224214324,"user":{"login":"olafurpg","id":1408093,"avatar_url":"https://avatars.githubusercontent.com/u/1408093?v=3","gravatar_id":"","url":"https://api.github.com/users/olafurpg","html_url":"https://github.com/olafurpg","followers_url":"https://api.github.com/users/olafurpg/followers","following_url":"https://api.github.com/users/olafurpg/following{/other_user}","gists_url":"https://api.github.com/users/olafurpg/gists{/gist_id}","starred_url":"https://api.github.com/users/olafurpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olafurpg/subscriptions","organizations_url":"https://api.github.com/users/olafurpg/orgs","repos_url":"https://api.github.com/users/olafurpg/repos","events_url":"https://api.github.com/users/olafurpg/events{/privacy}","received_events_url":"https://api.github.com/users/olafurpg/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T08:30:39Z","updated_at":"2016-06-07T08:30:39Z","body":"Format off is already supported: https://olafurpg.github.io/scalafmt/#//format:off\r\n\r\n\r\n> something also nice would be to have a push/pop feature:\r\n\r\nI like the idea of `pop`. Alternatively, we could name it `reset` and it let it disable all dynamic configuration.\r\n\r\n> A safer version would be to force pop to be given the exact same arguments as the corresponding push.\r\n\r\nIf we have reset, I don't think this will be necessary.\r\n\r\n> There could also be an error reported at the end of the file if the stack is non-empty at the end of the file.\r\n\r\nI think that's unnecessarily strict. For example, you might actually want to change the style for an entire file with a header comment.\r\n"}}
{"actor":{"display_login":"olafurpg"}}