{"id":13529066,"url":"https://github.com/Pizzaandy/Gobo","last_synced_at":"2025-04-01T14:34:01.259Z","repository":{"id":173485884,"uuid":"649962070","full_name":"Pizzaandy/Gobo","owner":"Pizzaandy","description":"Gobo is an opinionated code formatter for GameMaker Language.","archived":false,"fork":false,"pushed_at":"2024-03-28T05:46:28.000Z","size":645076,"stargazers_count":19,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-21T13:38:34.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pizzaandy.github.io/Gobo/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pizzaandy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"zandyball","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-06-06T03:01:57.000Z","updated_at":"2024-06-02T21:06:42.487Z","dependencies_parsed_at":null,"dependency_job_id":"b6dbea4b-2ead-41c8-97b4-139b589012fa","html_url":"https://github.com/Pizzaandy/Gobo","commit_stats":null,"previous_names":["pizzaandy/prettiergml"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pizzaandy%2FGobo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pizzaandy%2FGobo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pizzaandy%2FGobo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pizzaandy%2FGobo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pizzaandy","download_url":"https://codeload.github.com/Pizzaandy/Gobo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246655573,"owners_count":20812659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:32.488Z","updated_at":"2025-04-01T14:33:56.231Z","avatar_url":"https://github.com/Pizzaandy.png","language":"C#","readme":"## Gobo: GML Formatter\n\n[Try the formatter here!](https://pizzaandy.github.io/Gobo/)\n\nGobo is an opinionated formatter for GameMaker Language. It enforces a consistent style by parsing and re-printing your code with its own rules, taking maximum line length into account.\n\nBy using Gobo, you agree to cede control over the nitty-gritty details of formatting. In return, Gobo gives you speed, determinism, and smaller git diffs. End style debates with your team and save mental energy for what's important!\n\nGobo provides a few basic formatting options and has no plans to add more. It follows the [Option Philosophy](https://prettier.io/docs/en/option-philosophy.html) of Prettier.\n\n### Input\n\n```js\nx = a and b or c  a=0xFG=1 var var var i := 0\ndo begin\n;;;;show_debug_message(i)\n;;;;++constructor\nend until not constructor \u003c 10 return\n\ncall()\n```\n\n### Output\n\n```js\nx = a \u0026\u0026 b || c;\na = 0xF;\nG = 1;\nvar i = 0;\ndo {\n    show_debug_message(i);\n    ++constructor;\n} until (!constructor \u003c 10)\nreturn call();\n```\n\n## How does it work?\nGobo is written in C# and compiles to a self-contained binary using Native AOT in .NET 8.\n\nGobo uses a custom GML parser to read your code and ensure that formatted code is equivalent to the original. The parser is designed to only accept valid GML (with a few exceptions) to ensure correctness. There is no officially-documented format for GML's syntax tree, so Gobo uses a format similar to JavaScript parsers. \n\nGobo converts your code into an intermediate \"Doc\" format to make decisions about wrapping lines and printing comments. The doc printing algorithm is taken from [CSharpier](https://github.com/belav/csharpier), which is itself adapted from Prettier.\n\n## Limitations\nGobo cannot parse code that relies on macro expansion to be valid. Any standalone expression will be formatted with a semicolon, even if the expression is a macro.\n```js\nTHESE_MACROS;\nARE.VALID;\nBECAUSE_THEY_ARE_EXPRESSIONS()\n```\n","funding_links":["https://ko-fi.com/zandyball"],"categories":["Debugging"],"sub_categories":["Recommendations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPizzaandy%2FGobo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPizzaandy%2FGobo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPizzaandy%2FGobo/lists"}