{"action":"created","issue":{"url":"https://api.github.com/repos/aurusov/raox/issues/139","repository_url":"https://api.github.com/repos/aurusov/raox","labels_url":"https://api.github.com/repos/aurusov/raox/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/aurusov/raox/issues/139/comments","events_url":"https://api.github.com/repos/aurusov/raox/issues/139/events","html_url":"https://github.com/aurusov/raox/issues/139","id":105045879,"number":139,"title":"Стиль кода моделей","user":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aurusov/raox/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"bogachev-pa","id":6528492,"avatar_url":"https://avatars.githubusercontent.com/u/6528492?v=3","gravatar_id":"","url":"https://api.github.com/users/bogachev-pa","html_url":"https://github.com/bogachev-pa","followers_url":"https://api.github.com/users/bogachev-pa/followers","following_url":"https://api.github.com/users/bogachev-pa/following{/other_user}","gists_url":"https://api.github.com/users/bogachev-pa/gists{/gist_id}","starred_url":"https://api.github.com/users/bogachev-pa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogachev-pa/subscriptions","organizations_url":"https://api.github.com/users/bogachev-pa/orgs","repos_url":"https://api.github.com/users/bogachev-pa/repos","events_url":"https://api.github.com/users/bogachev-pa/events{/privacy}","received_events_url":"https://api.github.com/users/bogachev-pa/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aurusov/raox/milestones/7","html_url":"https://github.com/aurusov/raox/milestones/%D0%97%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F%20%D0%BD%D0%B0%20%D0%BF%D1%80%D0%B0%D0%BA%D1%82%D0%B8%D0%BA%D1%83","labels_url":"https://api.github.com/repos/aurusov/raox/milestones/7/labels","id":1303709,"number":7,"title":"Задания на практику","description":"","creator":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":2,"state":"open","created_at":"2015-09-14T06:38:13Z","updated_at":"2016-05-17T14:43:42Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2015-09-05T20:01:26Z","updated_at":"2016-05-17T14:47:04Z","closed_at":"2016-05-17T14:43:42Z","body":"Открыл модель `game5`, нажал `Ctrl+Shift+F`, получил\r\n![2015-09-05 23 00 18](https://cloud.githubusercontent.com/assets/5585202/9701045/e7a8e10e-5421-11e5-9043-893c6e45bb2e.png)\r\nНадо или настроить его или отключить.\r\n\r\n\r\n**Подробнее**:\r\n\r\nНастройка форматирования производится в методе `configureFormatting()` класса `/ru.bmstu.rk9.rao/src/ru/bmstu/rk9/rao/formatting/RaoFormatter.xtend`. \r\n\r\nПример того, как это делается, можно посмотреть [здесь](https://github.com/mn-mikke/Model-driven-Pretty-Printer-for-Xtext-Framework/wiki/Standard-Way-of-Code-Formatting-in-Xtext-Framework).\r\n\r\nПример проблем, аналогий которых не удалось найти в примере, т.е. нужно разбираться глубже:\r\n- добавлять перенос строк после фигурных скобок вида:\r\n\r\n```java\r\ntype a {\r\n    int b;\r\n}\r\n```\r\nно при этом разрешить не переносить таким образом строки для енумов:\r\n```java\r\nenum a {x, y, z}\r\n```\r\nи перед `else`: \r\n```java\r\nif (a > b) {\r\n   ...\r\n} else {\r\n   ...\r\n}\r\n```\r\n- Не ставить пробел между функциями и скобками, но ставить между `if` и скобками.\r\n\r\nНа данный момент локально удалось добиться такого поведения:\r\n![formatting](https://cloud.githubusercontent.com/assets/6528492/10000719/9a3deb58-60a6-11e5-8316-6c9514662572.png)\r\n\r\nКод, который это делает, можно посмотреть здесь: http://pastebin.com/wfhc9aGz\r\n"},"comment":{"url":"https://api.github.com/repos/aurusov/raox/issues/comments/219741165","html_url":"https://github.com/aurusov/raox/issues/139#issuecomment-219741165","issue_url":"https://api.github.com/repos/aurusov/raox/issues/139","id":219741165,"user":{"login":"aurusov","id":5585202,"avatar_url":"https://avatars.githubusercontent.com/u/5585202?v=3","gravatar_id":"","url":"https://api.github.com/users/aurusov","html_url":"https://github.com/aurusov","followers_url":"https://api.github.com/users/aurusov/followers","following_url":"https://api.github.com/users/aurusov/following{/other_user}","gists_url":"https://api.github.com/users/aurusov/gists{/gist_id}","starred_url":"https://api.github.com/users/aurusov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aurusov/subscriptions","organizations_url":"https://api.github.com/users/aurusov/orgs","repos_url":"https://api.github.com/users/aurusov/repos","events_url":"https://api.github.com/users/aurusov/events{/privacy}","received_events_url":"https://api.github.com/users/aurusov/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T14:47:04Z","updated_at":"2016-05-17T14:47:04Z","body":"1. покажи скрины\r\n2. как настраивать ?"}}