{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/714","labels_url":"https://api.github.com/repos/angular/angular/issues/714/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/714/comments","events_url":"https://api.github.com/repos/angular/angular/issues/714/events","html_url":"https://github.com/angular/angular/pull/714","id":58214839,"number":714,"title":"Reformat using clang-format at HEAD.","user":{"login":"mprobst","id":7208,"avatar_url":"https://avatars.githubusercontent.com/u/7208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprobst","html_url":"https://github.com/mprobst","followers_url":"https://api.github.com/users/mprobst/followers","following_url":"https://api.github.com/users/mprobst/following{/other_user}","gists_url":"https://api.github.com/users/mprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/mprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprobst/subscriptions","organizations_url":"https://api.github.com/users/mprobst/orgs","repos_url":"https://api.github.com/users/mprobst/repos","events_url":"https://api.github.com/users/mprobst/events{/privacy}","received_events_url":"https://api.github.com/users/mprobst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/cla:%20yes","name":"cla: yes","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-19T14:29:35Z","updated_at":"2015-02-19T18:50:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/714","html_url":"https://github.com/angular/angular/pull/714","diff_url":"https://github.com/angular/angular/pull/714.diff","patch_url":"https://github.com/angular/angular/pull/714.patch"},"body":"find modules/angular2 -iname '*.js' | xargs clang-format -i -style=\"{BasedOnStyle: Google, ColumnLimit: 120}\"\r\n\r\nNOCOMM: This is not supposed to go in, but serves as a demonstration of clang-format for AtScript."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/75111887","html_url":"https://github.com/angular/angular/pull/714#issuecomment-75111887","issue_url":"https://api.github.com/repos/angular/angular/issues/714","id":75111887,"user":{"login":"mprobst","id":7208,"avatar_url":"https://avatars.githubusercontent.com/u/7208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprobst","html_url":"https://github.com/mprobst","followers_url":"https://api.github.com/users/mprobst/followers","following_url":"https://api.github.com/users/mprobst/following{/other_user}","gists_url":"https://api.github.com/users/mprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/mprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprobst/subscriptions","organizations_url":"https://api.github.com/users/mprobst/orgs","repos_url":"https://api.github.com/users/mprobst/repos","events_url":"https://api.github.com/users/mprobst/events{/privacy}","received_events_url":"https://api.github.com/users/mprobst/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T18:50:31Z","updated_at":"2015-02-19T18:50:31Z","body":"I think that should be the plan, once I have the multi-line patch in and the code is ok.\r\n\r\nWe could integrate it like in Google internally, by requiring all *added* code to be clang-formatted, but leave existing code.\r\n\r\nBy the way: the build failure is caused by our code missing semicolons, and clang-format incorrectly indenting it. Shouldn't this be caught by some linter? Might actually be useful to have clang-format fail to indent that code just so we notice the missing semicolons."}}