{"action":"created","issue":{"url":"https://api.github.com/repos/openscad/openscad/issues/1151","labels_url":"https://api.github.com/repos/openscad/openscad/issues/1151/labels{/name}","comments_url":"https://api.github.com/repos/openscad/openscad/issues/1151/comments","events_url":"https://api.github.com/repos/openscad/openscad/issues/1151/events","html_url":"https://github.com/openscad/openscad/pull/1151","id":53972830,"number":1151,"title":"Add source code reformat option using astyle library.","user":{"login":"t-paul","id":1330241,"avatar_url":"https://avatars.githubusercontent.com/u/1330241?v=3","gravatar_id":"","url":"https://api.github.com/users/t-paul","html_url":"https://github.com/t-paul","followers_url":"https://api.github.com/users/t-paul/followers","following_url":"https://api.github.com/users/t-paul/following{/other_user}","gists_url":"https://api.github.com/users/t-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/t-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-paul/subscriptions","organizations_url":"https://api.github.com/users/t-paul/orgs","repos_url":"https://api.github.com/users/t-paul/repos","events_url":"https://api.github.com/users/t-paul/events{/privacy}","received_events_url":"https://api.github.com/users/t-paul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-10T21:56:47Z","updated_at":"2015-05-19T09:51:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openscad/openscad/pulls/1151","html_url":"https://github.com/openscad/openscad/pull/1151","diff_url":"https://github.com/openscad/openscad/pull/1151.diff","patch_url":"https://github.com/openscad/openscad/pull/1151.patch"},"body":"See Artistic Style, A Free, Fast, and Small Automatic Formatter.\r\nhttp://astyle.sourceforge.net/\r\n\r\nThis is completely optional, if the library is not found at ```qmake``` time, the functionality is disabled.\r\n\r\nIt's using the C++ formatting, so the behavior is not perfect, but it should be still useful to reformat complete files.\r\n\r\nTODO:\r\n* [ ] Add to macosx-build-dependencies.sh\r\n* [ ] Make sure it works with MXE\r\n* [ ] Make sure it works with MSYS2\r\n"},"comment":{"url":"https://api.github.com/repos/openscad/openscad/issues/comments/103420558","html_url":"https://github.com/openscad/openscad/pull/1151#issuecomment-103420558","issue_url":"https://api.github.com/repos/openscad/openscad/issues/1151","id":103420558,"user":{"login":"t-paul","id":1330241,"avatar_url":"https://avatars.githubusercontent.com/u/1330241?v=3","gravatar_id":"","url":"https://api.github.com/users/t-paul","html_url":"https://github.com/t-paul","followers_url":"https://api.github.com/users/t-paul/followers","following_url":"https://api.github.com/users/t-paul/following{/other_user}","gists_url":"https://api.github.com/users/t-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/t-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-paul/subscriptions","organizations_url":"https://api.github.com/users/t-paul/orgs","repos_url":"https://api.github.com/users/t-paul/repos","events_url":"https://api.github.com/users/t-paul/events{/privacy}","received_events_url":"https://api.github.com/users/t-paul/received_events","type":"User","site_admin":false},"created_at":"2015-05-19T09:51:16Z","updated_at":"2015-05-19T09:51:16Z","body":"With the ongoing work on a scad specific QScintilla lexer, we might be able to base the formatting on this code instead of astyle.\r\n\r\nI think I've skipped uncrustify back then as I did not find a description of how to use it as a library (without spending much time on searching; the debian package seems to only ship a binary). Calling an external program seemed to be more trouble than it's worth for OpenSCAD."}}