{"id":15394409,"url":"https://github.com/xyproto/javafmt","last_synced_at":"2026-04-17T11:33:37.277Z","repository":{"id":188456623,"uuid":"678772141","full_name":"xyproto/javafmt","owner":"xyproto","description":"Organize imports and format code, for Java and Kotlin","archived":false,"fork":false,"pushed_at":"2023-08-16T09:48:49.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T23:44:12.038Z","etag":null,"topics":["formatter","google-java-format","java","kotlin","ktlint","organize-imports-cli"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xyproto.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}},"created_at":"2023-08-15T10:43:09.000Z","updated_at":"2023-08-16T09:48:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"97094eae-0112-443e-ba38-a3518cc02af5","html_url":"https://github.com/xyproto/javafmt","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.23529411764705888","last_synced_commit":"081cdbacd7b11229aadd5bb781904de9bb426421"},"previous_names":["xyproto/javafmt"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/xyproto/javafmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fjavafmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fjavafmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fjavafmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fjavafmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xyproto","download_url":"https://codeload.github.com/xyproto/javafmt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xyproto%2Fjavafmt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31927963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["formatter","google-java-format","java","kotlin","ktlint","organize-imports-cli"],"created_at":"2024-10-01T15:23:31.554Z","updated_at":"2026-04-17T11:33:37.261Z","avatar_url":"https://github.com/xyproto.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# javafmt\n\nFor both Java and Kotlin, **automatically add or remove imports** and then format the code with `google-java-format` or `ktlint`, depending on the file extension.\n\n## Requirements\n\n* `google-java-format`\n* `ktlint`\n\n## Example use\n\n```\ncd my-java-project\njavafmt\n```\n\nOr to change the files (`-w` for \"write\"):\n\n```\ncd my-java-project\njavafmt -w\n```\n\nOr to format all `.kt` and `.java` in a directory, but not touch the imports:\n\n```\ncd my-java-project\njavafm -n -w\n```\n\n## Quick installation\n\nRequires Go 1.21 or later:\n\n    go install github.com/xyproto/javafmt@latest\n\n## Issues\n\nThis utility is a bit experimental, so the correct imports may not always be used. Bug reports and pull requests are welcome!\n\n## General info\n\n* Version: 1.0.0\n* License: BSD-3\n* Author: Alexander F. Rødseth \u0026lt;xyproto@archlinux.org\u0026gt;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fjavafmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyproto%2Fjavafmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyproto%2Fjavafmt/lists"}