{"action":"closed","issue":{"url":"https://api.github.com/repos/Shih-tzuco/Calculator/issues/15","repository_url":"https://api.github.com/repos/Shih-tzuco/Calculator","labels_url":"https://api.github.com/repos/Shih-tzuco/Calculator/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Shih-tzuco/Calculator/issues/15/comments","events_url":"https://api.github.com/repos/Shih-tzuco/Calculator/issues/15/events","html_url":"https://github.com/Shih-tzuco/Calculator/issues/15","id":328751677,"node_id":"MDU6SXNzdWUzMjg3NTE2Nzc=","number":15,"title":"Форматирование конструкции switch","user":{"login":"PavelDubsky","id":12466368,"node_id":"MDQ6VXNlcjEyNDY2MzY4","avatar_url":"https://avatars0.githubusercontent.com/u/12466368?v=4","gravatar_id":"","url":"https://api.github.com/users/PavelDubsky","html_url":"https://github.com/PavelDubsky","followers_url":"https://api.github.com/users/PavelDubsky/followers","following_url":"https://api.github.com/users/PavelDubsky/following{/other_user}","gists_url":"https://api.github.com/users/PavelDubsky/gists{/gist_id}","starred_url":"https://api.github.com/users/PavelDubsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PavelDubsky/subscriptions","organizations_url":"https://api.github.com/users/PavelDubsky/orgs","repos_url":"https://api.github.com/users/PavelDubsky/repos","events_url":"https://api.github.com/users/PavelDubsky/events{/privacy}","received_events_url":"https://api.github.com/users/PavelDubsky/received_events","type":"User","site_admin":false},"labels":[{"id":950214176,"node_id":"MDU6TGFiZWw5NTAyMTQxNzY=","url":"https://api.github.com/repos/Shih-tzuco/Calculator/labels/formatting","name":"formatting","color":"a2eeef","default":false}],"state":"closed","locked":false,"assignee":{"login":"Shih-tzuco","id":36725001,"node_id":"MDQ6VXNlcjM2NzI1MDAx","avatar_url":"https://avatars0.githubusercontent.com/u/36725001?v=4","gravatar_id":"","url":"https://api.github.com/users/Shih-tzuco","html_url":"https://github.com/Shih-tzuco","followers_url":"https://api.github.com/users/Shih-tzuco/followers","following_url":"https://api.github.com/users/Shih-tzuco/following{/other_user}","gists_url":"https://api.github.com/users/Shih-tzuco/gists{/gist_id}","starred_url":"https://api.github.com/users/Shih-tzuco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shih-tzuco/subscriptions","organizations_url":"https://api.github.com/users/Shih-tzuco/orgs","repos_url":"https://api.github.com/users/Shih-tzuco/repos","events_url":"https://api.github.com/users/Shih-tzuco/events{/privacy}","received_events_url":"https://api.github.com/users/Shih-tzuco/received_events","type":"User","site_admin":false},"assignees":[{"login":"Shih-tzuco","id":36725001,"node_id":"MDQ6VXNlcjM2NzI1MDAx","avatar_url":"https://avatars0.githubusercontent.com/u/36725001?v=4","gravatar_id":"","url":"https://api.github.com/users/Shih-tzuco","html_url":"https://github.com/Shih-tzuco","followers_url":"https://api.github.com/users/Shih-tzuco/followers","following_url":"https://api.github.com/users/Shih-tzuco/following{/other_user}","gists_url":"https://api.github.com/users/Shih-tzuco/gists{/gist_id}","starred_url":"https://api.github.com/users/Shih-tzuco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shih-tzuco/subscriptions","organizations_url":"https://api.github.com/users/Shih-tzuco/orgs","repos_url":"https://api.github.com/users/Shih-tzuco/repos","events_url":"https://api.github.com/users/Shih-tzuco/events{/privacy}","received_events_url":"https://api.github.com/users/Shih-tzuco/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-02T15:11:45Z","updated_at":"2018-06-04T05:36:04Z","closed_at":"2018-06-04T05:36:04Z","author_association":"COLLABORATOR","body":"Оператор выбора switch должен подчиняться следующим правилам форматирования:\r\n- Первая строка состоит из ключевого слова `switch`, отделенного одним пробелом от круглых скобок, в которых располагается выражение.\r\n- После открывающейся круглой скобки и перед закрывающейся круглой скобкой не должно быть отступов в виде пробелов.\r\n- В строках с фигурными скобками не должно быть никакого другого программного кода.\r\n- Каждая метка `case` должна быть сдвинута на одну табуляцию, а ее тело на две.\r\n- Тело метки не стоит «оборачивать» в фигурные скобки.\r\n- Метки должны располагаться в порядке возрастания своих значений (по алфавиту или по возрастанию).\r\n- Конструкция `default` должна располагаться в конце и не должна быть пустая. В случае если она получается пустая ее не стоит писать вообще.\r\n\r\nПример:\r\n```\r\nswitch (value)\r\n{\r\n    case 1:\r\n        DoAction1();\r\n        break;\r\n    case 2:\r\n        DoAction2();\r\n        break;\r\n    case 3:\r\n        DoAction3();\r\n        break;\r\n    default:\r\n        DoDefaultAction();\r\n        break;\r\n}\r\n```\r\n\r\nМетоды, в которых данное правило не соблюдается:\r\n- `Calculator.Form1.buttonOperation_Click`."}}
{"actor":{"display_login":"Shih-tzuco"}}