{"id":23806787,"url":"https://github.com/webrpc/ridlfmt","last_synced_at":"2026-01-06T14:12:39.375Z","repository":{"id":232493443,"uuid":"784484669","full_name":"webrpc/ridlfmt","owner":"webrpc","description":"Formatter for RIDL file","archived":false,"fork":false,"pushed_at":"2025-03-26T07:29:44.000Z","size":44,"stargazers_count":5,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T06:51:23.746Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/webrpc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-10T00:04:05.000Z","updated_at":"2025-03-26T08:49:24.000Z","dependencies_parsed_at":"2024-10-18T07:19:42.239Z","dependency_job_id":"762b987f-d0ba-42c5-b1ce-f674fb4a74f6","html_url":"https://github.com/webrpc/ridlfmt","commit_stats":null,"previous_names":["webrpc/ridlfmt"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/webrpc/ridlfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fridlfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fridlfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fridlfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fridlfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webrpc","download_url":"https://codeload.github.com/webrpc/ridlfmt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webrpc%2Fridlfmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273672988,"owners_count":25147497,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-01-01T23:14:37.263Z","updated_at":"2026-01-06T14:12:39.343Z","avatar_url":"https://github.com/webrpc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RIDLFMT\n\nRIDLFMT is a tool for formatting files written in the RIDL format, used by webrpc.\n\nIt uses similiar API as `gofmt`\n\n```\nridlfmt -h\nusage: ridlfmt [flags] [path...]\n\n    -h    show help\n    -s    sort errors by code\n    -w    write result to (source) file instead of stdout\n```\n\n## Installation\n\nYou can install RIDLFMT using `go install`:\n\n```bash\ngo install github.com/webrpc/ridlfmt@latest\n```\n\n## Setting in IDE\n\n### VSCode\n\nInstall these extensions:\n\n1. [RIDL syntax](https://marketplace.visualstudio.com/items?itemName=XanderAppWorks.vscode-webrpc-ridl-syntax)\n   - Needed for recognition of `.ridl` filetype and as a bonus it provides syntax highlighting.\n2. [Custom Local Formatters](https://marketplace.visualstudio.com/items?itemName=jkillian.custom-local-formatters)\n\nIf the extensions can't be found, install them manually: [Stack overflow: How to install VS code extension manually?](https://stackoverflow.com/questions/42017617/how-to-install-vs-code-extension-manually)\n\nAdd this to `settings.json`\n\n```json\n\"customLocalFormatters.formatters\": [\n    {\n        \"command\": \"ridlfmt -s\",\n        \"languages\": [\"ridl\"]\n    }\n]\n```\n\nFlag `-s` is for sorting errors.\n\nNow you should be able to format `.ridl`, right click and `Format Document`\nIf you want to format on save, use this settings, but it is global\n\n```json\n\"editor.formatOnSave\": true,\n\n```\n\nNOTE: If it doesn't work, check the logs (`Developer: Show logs...` -\u003e `Extension Host`), if you see this error: `/bin/sh: line 1: ridlfmt: command not found` then `ridlfmt` is not seen by `/bin/sh`, you can copy the binary there with this command:\n\n```bash\nsudo cp $(go env GOPATH)/bin/ridlfmt /usr/local/bin/\n```\n\n### Neovim using [null-ls/none-ls](https://github.com/nvimtools/none-ls.nvim)\n\nDefine `.ridl` filetype, so Neovim would know about it (without this the `.ridl` files wouldn't be detected)\n\n```lua\nvim.cmd('autocmd BufRead,BufNewFile *.ridl set filetype=ridl')\n```\n\nDefine custom source and register it same as builtins formatters:\n\n```lua\nlocal ridl_formatter = {\n    name = \"ridlfmt\",\n    filetypes = { \"ridl\" },\n    method = null_ls.methods.FORMATTING,\n    generator = null_ls.formatter({\n        command = \"ridlfmt\",\n        args = { \"-s\" },\n        to_stdin = true,\n        from_stderr = true,\n    }),\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fridlfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebrpc%2Fridlfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebrpc%2Fridlfmt/lists"}