{"id":21072360,"url":"https://github.com/justbuchanan/stylize","last_synced_at":"2025-05-16T05:32:22.626Z","repository":{"id":36111508,"uuid":"40413465","full_name":"justbuchanan/stylize","owner":"justbuchanan","description":"Quickly re-format or checkstyle your code repository","archived":false,"fork":false,"pushed_at":"2025-01-21T07:32:04.000Z","size":212,"stargazers_count":10,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T17:07:46.744Z","etag":null,"topics":["beautify","checkstyle","cpp","formatter","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justbuchanan.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":"2015-08-08T19:01:33.000Z","updated_at":"2025-02-15T15:09:28.000Z","dependencies_parsed_at":"2024-06-19T09:58:49.989Z","dependency_job_id":"d3e06b2f-49c0-4671-9777-30630b9822af","html_url":"https://github.com/justbuchanan/stylize","commit_stats":{"total_commits":212,"total_committers":4,"mean_commits":53.0,"dds":"0.13207547169811318","last_synced_commit":"764b133106b6b9a82dcf108934fc14ba186b548a"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbuchanan%2Fstylize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbuchanan%2Fstylize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbuchanan%2Fstylize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justbuchanan%2Fstylize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justbuchanan","download_url":"https://codeload.github.com/justbuchanan/stylize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254474613,"owners_count":22077320,"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":["beautify","checkstyle","cpp","formatter","golang"],"created_at":"2024-11-19T18:56:15.524Z","updated_at":"2025-05-16T05:32:20.319Z","avatar_url":"https://github.com/justbuchanan.png","language":"Go","readme":"# Stylize [![circleci](https://circleci.com/gh/justbuchanan/stylize.svg?style=shield)](https://circleci.com/gh/justbuchanan/stylize) [![coveralls](https://coveralls.io/repos/justbuchanan/stylize/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/justbuchanan/stylize?branch=master)\n\nStylize quickly reformats or checkstyles an entire repository of code.\nIt's a wrapper over other checkstyle programs such as `clang-format` or `yapf` that lets you use one command to operate on your entire repo, consisting of multiple types of files.\n\n## Usage\n\n```bash\n# install\ngo get -u github.com/justbuchanan/stylize\n\n# check files and write a patch file to 'patch.txt'. This patch file shows what\n# changes the formatter would have made if run with the `-i` (in-place) flag.\n# You can also apply this generated patch to the repo using `git apply`.\nstylize --patch_output patch.txt\n\n# format all code in-place\n# note: make a git commit before doing this - there's no undo button\nstylize -i\n\n# format code in place, excluding a couple directories\nstylize -i --exclude=build,external\n\n# reformat only files that differ from origin/master\nstylize -i --git_diffbase origin/master\n```\n\n## Configuration\n\nBy default, `stylize` looks for a config file named `.stylize.yml` in the current directory. A different file can be specified with the `--config` flag. See [`config.go`](config.go) for what options are available and see this repo's [`.stylize.yml`](.stylize.yml) file as an example.\n\n## Supported formatters\n\nStylize currently has support for:\n\n-   [buildifier](https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md)\n-   [clang-format](https://clang.llvm.org/docs/ClangFormat.html)\n-   [gofmt](https://golang.org/cmd/gofmt/)\n-   [yapf](https://github.com/google/yapf)\n-   [prettier](https://github.com/prettier/prettier)\n-   [uncrustify](https://github.com/uncrustify/uncrustify)\n-   [rustfmt](https://github.com/rust-lang-nursery/rustfmt)\n-   [black](https://github.com/ambv/black)\n\nOther formatters can easily be added. See the files in the 'formatters' directory as examples.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbuchanan%2Fstylize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustbuchanan%2Fstylize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustbuchanan%2Fstylize/lists"}