{"id":36471149,"url":"https://github.com/rsookram/axmlfmt","last_synced_at":"2026-01-12T00:37:50.416Z","repository":{"id":47089119,"uuid":"220144836","full_name":"rsookram/axmlfmt","owner":"rsookram","description":"axmlfmt is an opinionated formatter for Android XML resources","archived":false,"fork":false,"pushed_at":"2021-10-21T22:21:57.000Z","size":54,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-19T19:42:13.932Z","etag":null,"topics":["android","cli","formatter","golang","xml"],"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/rsookram.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}},"created_at":"2019-11-07T03:36:19.000Z","updated_at":"2022-05-14T03:27:41.000Z","dependencies_parsed_at":"2022-09-12T11:02:01.764Z","dependency_job_id":null,"html_url":"https://github.com/rsookram/axmlfmt","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rsookram/axmlfmt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsookram%2Faxmlfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsookram%2Faxmlfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsookram%2Faxmlfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsookram%2Faxmlfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsookram","download_url":"https://codeload.github.com/rsookram/axmlfmt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsookram%2Faxmlfmt/sbom","scorecard":{"id":787500,"data":{"date":"2025-08-11","repo":{"name":"github.com/rsookram/axmlfmt","commit":"c47693c45dd7d6f319617b30d0cae444ae3d6c18"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:9","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/rsookram/axmlfmt/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/rsookram/axmlfmt/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/rsookram/axmlfmt/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/rsookram/axmlfmt/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rsookram/axmlfmt/test.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/rsookram/axmlfmt/releases/51826066","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/rsookram/axmlfmt/releases/51476423","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/rsookram/axmlfmt/releases/49167563","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/rsookram/axmlfmt/releases/51826066","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/rsookram/axmlfmt/releases/51476423","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/rsookram/axmlfmt/releases/49167563"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 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"}},{"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"}}]},"last_synced_at":"2025-08-23T06:28:26.161Z","repository_id":47089119,"created_at":"2025-08-23T06:28:26.161Z","updated_at":"2025-08-23T06:28:26.161Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28329806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"ssl_error","status_checked_at":"2026-01-12T00:36:15.229Z","response_time":60,"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":["android","cli","formatter","golang","xml"],"created_at":"2026-01-12T00:37:49.773Z","updated_at":"2026-01-12T00:37:50.411Z","avatar_url":"https://github.com/rsookram.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# axmlfmt\n\naxmlfmt is an opinionated formatter for Android XML resources. It takes XML\nthat looks like\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cLinearLayout\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_height=\"match_parent\"\n    android:layout_width=\"match_parent\"\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\"\u003e\n\n\n    \u003c!-- Not using AppCompat to reduce app size --\u003e\n  \u003cToolbar\n      android:layout_width=\"match_parent\"\n      android:id=\"@+id/toolbar\"\n      android:layout_height=\"wrap_content\"\n      android:title=\"@string/app_name\"/\u003e\n\n    \u003cScrollView\n        android:layout_weight=\"1\"\n        android:layout_width=\"match_parent\"\n      android:layout_height=\"0dp\"\n        android:fillViewport=\"true\"\u003e\n\n        \u003cEditText\n                android:id=\"@+id/text\"\n            android:layout_width=\"match_parent\"\n            android:importantForAutofill=\"no\"\n            android:layout_height=\"wrap_content\"\n            android:textSize=\"16sp\"\u003e\n          \u003c/EditText\u003e\n\n    \u003c/ScrollView\u003e\n\u003c/LinearLayout\u003e\n```\n\nand turns it into\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cLinearLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:orientation=\"vertical\"\n    tools:context=\".MainActivity\"\u003e\n\n    \u003c!-- Not using AppCompat to reduce app size --\u003e\n    \u003cToolbar\n        android:id=\"@+id/toolbar\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"wrap_content\"\n        android:title=\"@string/app_name\" /\u003e\n\n    \u003cScrollView\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"0dp\"\n        android:fillViewport=\"true\"\n        android:layout_weight=\"1\"\u003e\n\n        \u003cEditText\n            android:id=\"@+id/text\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"wrap_content\"\n            android:importantForAutofill=\"no\"\n            android:textSize=\"16sp\" /\u003e\n    \u003c/ScrollView\u003e\n\u003c/LinearLayout\u003e\n```\n\n\n## Install\n\nPre-compiled binaries of axmlfmt can be downloaded from\n[the releases page](https://github.com/rsookram/axmlfmt/releases).\nAlternatively, you can install it with with the\n[`go` command](https://golang.org/doc/install) by running:\n\n```shell\ngo install github.com/rsookram/axmlfmt/cmd/axmlfmt@latest\n```\n\n\n## Usage\n\nOne way you may want to use axmlfmt is to have it format all the XML files in a\ngit repository. This can be done with the following command:\n\n```shell\ngit ls-files '*.xml' | xargs axmlfmt -w\n```\n\nThe full usage description is:\n\n```\nUSAGE:\n    axmlfmt [FLAGS] [FILE]...\n\nFLAGS:\n    -h, -help, --help    Prints help information\n    -V                   Prints version information\n    -w                   Writes result to (source) file instead of stdout\n\nARGS:\n    \u003cFILE\u003e...    Path of XML files to format\n```\n\n\n## Build\n\naxmlfmt can be built from source by cloning this repository and using the `go`\ncommand.\n\n```shell\ngit clone https://github.com/rsookram/axmlfmt\ncd axmlfmt\ngo build ./cmd/axmlfmt\n```\n\n\nLicense\n-------\n\n    Copyright 2019 Rashad Sookram\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsookram%2Faxmlfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsookram%2Faxmlfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsookram%2Faxmlfmt/lists"}