{"id":36418765,"url":"https://github.com/autostyle/autostyle","last_synced_at":"2026-01-11T17:01:40.136Z","repository":{"id":55816506,"uuid":"221291085","full_name":"autostyle/autostyle","owner":"autostyle","description":"Automatic code formatter for Gradle","archived":false,"fork":false,"pushed_at":"2025-07-18T14:38:58.000Z","size":4304,"stargazers_count":24,"open_issues_count":24,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-18T18:15:15.060Z","etag":null,"topics":["automatic","code-formatter","gradle-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/autostyle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2019-11-12T19:03:19.000Z","updated_at":"2025-07-18T14:39:03.000Z","dependencies_parsed_at":"2024-01-22T03:31:11.941Z","dependency_job_id":"e9a44c07-95ae-4677-adae-d5d0a183f253","html_url":"https://github.com/autostyle/autostyle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/autostyle/autostyle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autostyle%2Fautostyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autostyle%2Fautostyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autostyle%2Fautostyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autostyle%2Fautostyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autostyle","download_url":"https://codeload.github.com/autostyle/autostyle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autostyle%2Fautostyle/sbom","scorecard":{"id":217426,"data":{"date":"2025-08-11","repo":{"name":"github.com/autostyle/autostyle","commit":"024437f7da01055a804e38e99568e10907ee8c86"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":4,"reason":"Found 14/30 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"22 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-drafter.yaml:13","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yaml:18","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/release.yaml:21","Info: topLevel 'contents' permission set to 'read': .github/workflows/gradle-wrapper-validation.yml:5","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/pgp-key-maintenance.yaml:6","Warn: no topLevel permission defined: .github/workflows/regress.yml:1","Warn: no topLevel permission defined: .github/workflows/release-drafter.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":7,"reason":"dependency not pinned by hash detected -- score normalized to 7","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/regress.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/regress.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/regress.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/regress.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/regress.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/regress.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/regress.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/autostyle/autostyle/regress.yml/master?enable=pin","Info:   6 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   5 out of   5 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T01:54:45.032Z","repository_id":55816506,"created_at":"2025-08-17T01:54:45.032Z","updated_at":"2025-08-17T01:54:45.032Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["automatic","code-formatter","gradle-plugin"],"created_at":"2026-01-11T17:01:40.068Z","updated_at":"2026-01-11T17:01:40.124Z","avatar_url":"https://github.com/autostyle.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autostyle: fix code style automatically\n\n\u003c!---freshmark shields\noutput = [\n  link(image('CI Status', 'https://github.com/{{org}}/{{name}}/workflows/CI/badge.svg'), 'https://github.com/{{org}}/{{name}}/actions'),\n  ].join('\\n');\n--\u003e\n[![CI Status](https://github.com/autostyle/autostyle/workflows/CI/badge.svg)](https://github.com/autostyle/autostyle/actions)\n\u003c!---freshmark /shields --\u003e\n\nAutostyle can format \u0026lt;java | kotlin | scala | sql | groovy | javascript | flow | typeScript | css | scss | less | jsx | vue | graphql | json | yaml | markdown | license headers | anything\u003e using \u0026lt;Gradle\u003e.\n\n- [Autostyle for Gradle 5.6+](plugin-gradle)\n- [Other build systems](CONTRIBUTING.md#how-to-add-a-new-plugin-for-a-build-system)\n\nIdeally, a code formatter can do more than just find formatting errors - it should fix them as well. Such a formatter is really just a `Function\u003cString, String\u003e`, which returns a formatted version of its potentially unformatted input.\n\nIt's easy to build such a function, but there are some gotchas and lots of integration work (newlines, character encodings, idempotency, and build-system integration). Autostyle tackles those for you so you can focus on just a simple `Function\u003cString, String\u003e` which can compose with any of the other formatters and build tools in Autostyle' arsenal.\n\n## Current feature matrix\n\n\u003c!---freshmark matrix\nfunction lib(className)   { return '| [`' + className + '`](lib/src/main/java/com/github/autostyle/' + className.replace('.', '/') + '.java) | ' }\nfunction extra(className) { return '| [`' + className + '`](lib-extra/src/main/java/com/github/autostyle/extra/' + className.replace('.', '/') + '.java) | ' }\n\n//                                               | GRADLE        | (new)   |\noutput = [\n'| Feature / FormatterStep                       | [plugin-gradle](plugin-gradle/README.md) | [(Your build tool here)](CONTRIBUTING.md#how-to-add-a-new-plugin-for-a-build-system) |',\n'| --------------------------------------------- | ------------- | --------|',\nlib('generic.EndWithNewlineStep')                +'{{yes}}       | {{no}}  |',\nlib('generic.IndentStep')                        +'{{yes}}       | {{no}}  |',\nlib('generic.LicenseHeaderStep')                 +'{{yes}}       | {{no}}  |',\nlib('generic.ReplaceRegexStep')                  +'{{yes}}       | {{no}}  |',\nlib('generic.ReplaceStep')                       +'{{yes}}       | {{no}}  |',\nlib('generic.TrimTrailingWhitespaceStep')        +'{{yes}}       | {{no}}  |',\nlib('java.GoogleJavaFormatStep')                 +'{{yes}}       | {{no}}  |',\nlib('java.ImportOrderStep')                      +'{{yes}}       | {{no}}  |',\nlib('java.RemoveUnusedImportsStep')              +'{{yes}}       | {{no}}  |',\nlib('kotlin.KtLintStep')                         +'{{yes}}       | {{no}}  |',\nlib('markdown.FreshMarkStep')                    +'{{yes}}       | {{no}}  |',\nlib('npm.PrettierFormatterStep')                 +'{{yes}}       | {{no}}  |',\nlib('npm.TsFmtFormatterStep')                    +'{{yes}}       | {{no}}  |',\nlib('scala.ScalaFmtStep')                        +'{{yes}}       | {{no}}  |',\nlib('sql.DBeaverSQLFormatterStep')               +'{{yes}}       | {{no}}  |',\n'| [(Your FormatterStep here)](CONTRIBUTING.md#how-to-add-a-new-formatterstep) | {{no}}       | {{no}}  |',\n'| Fast up-to-date checking                      | {{yes}}       | {{no}}  |',\n'| Automatic idempotency safeguard               | {{yes}}       | {{no}}  |',\n''\n].join('\\n');\n--\u003e\n| Feature / FormatterStep                       | [plugin-gradle](plugin-gradle/README.md) | [(Your build tool here)](CONTRIBUTING.md#how-to-add-a-new-plugin-for-a-build-system) |\n| --------------------------------------------- | ------------- | --------|\n| [`generic.EndWithNewlineStep`](lib/src/main/java/com/github/autostyle/generic/EndWithNewlineStep.java) | :+1:       | :white_large_square:  |\n| [`generic.IndentStep`](lib/src/main/java/com/github/autostyle/generic/IndentStep.java) | :+1:       | :white_large_square:  |\n| [`generic.LicenseHeaderStep`](lib/src/main/java/com/github/autostyle/generic/LicenseHeaderStep.java) | :+1:       | :white_large_square:  |\n| [`generic.ReplaceRegexStep`](lib/src/main/java/com/github/autostyle/generic/ReplaceRegexStep.java) | :+1:       | :white_large_square:  |\n| [`generic.ReplaceStep`](lib/src/main/java/com/github/autostyle/generic/ReplaceStep.java) | :+1:       | :white_large_square:  |\n| [`generic.TrimTrailingWhitespaceStep`](lib/src/main/java/com/github/autostyle/generic/TrimTrailingWhitespaceStep.java) | :+1:       | :white_large_square:  |\n| [`java.GoogleJavaFormatStep`](lib/src/main/java/com/github/autostyle/java/GoogleJavaFormatStep.java) | :+1:       | :white_large_square:  |\n| [`java.ImportOrderStep`](lib/src/main/java/com/github/autostyle/java/ImportOrderStep.java) | :+1:       | :white_large_square:  |\n| [`java.RemoveUnusedImportsStep`](lib/src/main/java/com/github/autostyle/java/RemoveUnusedImportsStep.java) | :+1:       | :white_large_square:  |\n| [`kotlin.KtLintStep`](lib/src/main/java/com/github/autostyle/kotlin/KtLintStep.java) | :+1:       | :white_large_square:  |\n| [`markdown.FreshMarkStep`](lib/src/main/java/com/github/autostyle/markdown/FreshMarkStep.java) | :+1:       | :white_large_square:  |\n| [`npm.PrettierFormatterStep`](lib/src/main/java/com/github/autostyle/npm/PrettierFormatterStep.java) | :+1:       | :white_large_square:  |\n| [`npm.TsFmtFormatterStep`](lib/src/main/java/com/github/autostyle/npm/TsFmtFormatterStep.java) | :+1:       | :white_large_square:  |\n| [`scala.ScalaFmtStep`](lib/src/main/java/com/github/autostyle/scala/ScalaFmtStep.java) | :+1:       | :white_large_square:  |\n| [`sql.DBeaverSQLFormatterStep`](lib/src/main/java/com/github/autostyle/sql/DBeaverSQLFormatterStep.java) | :+1:       | :white_large_square:  |\n| [(Your FormatterStep here)](CONTRIBUTING.md#how-to-add-a-new-formatterstep) | :white_large_square:       | :white_large_square:  |\n| Fast up-to-date checking                      | :+1:       | :white_large_square:  |\n| Automatic idempotency safeguard               | :+1:       | :white_large_square:  |\n\u003c!---freshmark /matrix --\u003e\n\n*Why are there empty squares?* Many projects get harder to work on as they get bigger. \nAutostyle is easier to work on than ever, and one of the reasons why is that we don't require \ncontributors to \"fill the matrix\". So far Autostyle works better with Gradle, however we would consider PRs \neven if it only supports the one formatter you use.\n\nAnd if you want to add FooFormatter support, we'll happily accept the PR even if it only supports the one build system you use.\n\nOnce someone has filled in one square of the formatter/build system matrix, \nit's easy for interested parties to fill in any empty squares, since you'll now have a working example for every piece needed.\n\n## Release signing keys\n\n`6FF955169D698CC09BA7403AC99BFE8CD562EAC1` since 2025-07-20\n\n## Acknowledgements\n- Thanks to contributors of [Spotless](https://github.com/diffplug/spotless).\n- Built by [Gradle](https://gradle.org/).\n- Tested by [JUnit](https://junit.org/).\n- Maintained by [Vladimir Sitnikov](https://github.com/vlsi).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautostyle%2Fautostyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautostyle%2Fautostyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautostyle%2Fautostyle/lists"}