{"id":28763844,"url":"https://github.com/cockroachdb/crlfmt","last_synced_at":"2025-10-06T20:07:19.927Z","repository":{"id":54806033,"uuid":"66479372","full_name":"cockroachdb/crlfmt","owner":"cockroachdb","description":"Formatter for CockroachDB's additions to the Go style guide.","archived":false,"fork":false,"pushed_at":"2024-08-07T00:49:04.000Z","size":116,"stargazers_count":18,"open_issues_count":5,"forks_count":14,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-06-13T14:02:31.261Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cockroachdb.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":"2016-08-24T16:09:50.000Z","updated_at":"2025-02-23T05:33:19.000Z","dependencies_parsed_at":"2024-05-03T16:27:29.951Z","dependency_job_id":"3f7b49bb-0212-4147-b6e6-46820ad28503","html_url":"https://github.com/cockroachdb/crlfmt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/cockroachdb/crlfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fcrlfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fcrlfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fcrlfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fcrlfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cockroachdb","download_url":"https://codeload.github.com/cockroachdb/crlfmt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cockroachdb%2Fcrlfmt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260326793,"owners_count":22992388,"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":"2025-06-17T09:10:35.808Z","updated_at":"2025-10-06T20:07:14.889Z","avatar_url":"https://github.com/cockroachdb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crlfmt\n\n`crlfmt` is a `gofmt`-style linter for Go code that enforces the CockroachDB Style Guide found [here](https://wiki.crdb.io/wiki/spaces/CRDB/pages/181371303/Go+coding+guidelines).\n\n## Usage\n\n```\n$ go install github.com/cockroachdb/crlfmt\n$ crlfmt [flags] \u003cfile path\u003e\n\nFlags:\n  -diff             print diffs (default true)\n  -fast             skip running goimports and simplify\n  -groupimports     group imports by type (default true)\n  -ignore \u003cstring\u003e  regex matching files to skip\n  -tab \u003cint\u003e        tab width for column calculations (default 2)\n  -w                overwrite modified files\n  -wrap \u003cint\u003e       column to wrap at (default 100)\n  -wrapdoc \u003cint\u003e    column at which to wrap doc strings for functions, variables, constants, and types. ignores multiline comments denoted by /*\n```\n\n## Examples\n\nIf you are running `crlfmt` on the http://github.com/cockroachdb/cockroach codebase, you can use the following command to reformat all files in the current directory, ignoring generated code files:\n\n```\n$ crlfmt -w -ignore '\\.(pb(\\.gw)?)|(\\.[eo]g)\\.go|/testdata/|^sql/parser/sql\\.go$|_generated(_test)?\\.go$' .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockroachdb%2Fcrlfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcockroachdb%2Fcrlfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcockroachdb%2Fcrlfmt/lists"}