{"id":38142368,"url":"https://github.com/rinchsan/gosimports","last_synced_at":"2026-01-16T22:51:48.194Z","repository":{"id":37028023,"uuid":"324979915","full_name":"rinchsan/gosimports","owner":"rinchsan","description":"alias goimports='gosimports'","archived":false,"fork":false,"pushed_at":"2026-01-10T01:28:07.000Z","size":429,"stargazers_count":94,"open_issues_count":18,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-10T23:35:03.433Z","etag":null,"topics":["alternative","go","goimports"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/rinchsan/gosimports","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/rinchsan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-28T10:23:24.000Z","updated_at":"2025-06-23T23:28:53.000Z","dependencies_parsed_at":"2023-12-12T22:41:12.607Z","dependency_job_id":"2792995a-e188-4b1c-866c-9963af60d967","html_url":"https://github.com/rinchsan/gosimports","commit_stats":null,"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"purl":"pkg:github/rinchsan/gosimports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fgosimports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fgosimports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fgosimports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fgosimports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rinchsan","download_url":"https://codeload.github.com/rinchsan/gosimports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rinchsan%2Fgosimports/sbom","scorecard":{"id":765614,"data":{"date":"2025-08-11","repo":{"name":"github.com/rinchsan/gosimports","commit":"62c53ddc3c8722681a97575a82e032817063680c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 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":"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":"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: no topLevel permission defined: .github/workflows/draft.yaml:1","Warn: no topLevel permission defined: .github/workflows/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/test.yaml: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: third-party GitHubAction not pinned by hash: .github/workflows/draft.yaml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/draft.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/release.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yaml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yaml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/rinchsan/gosimports/test.yaml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: 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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.3.8 not signed: https://api.github.com/repos/rinchsan/gosimports/releases/95063125","Warn: release artifact v0.3.7 not signed: https://api.github.com/repos/rinchsan/gosimports/releases/92944201","Warn: release artifact v0.3.6 not signed: https://api.github.com/repos/rinchsan/gosimports/releases/92942606","Warn: release artifact v0.3.5 not signed: https://api.github.com/repos/rinchsan/gosimports/releases/81034677","Warn: release artifact v0.3.4 not signed: https://api.github.com/repos/rinchsan/gosimports/releases/80634928","Warn: release artifact v0.3.8 does not have provenance: https://api.github.com/repos/rinchsan/gosimports/releases/95063125","Warn: release artifact v0.3.7 does not have provenance: https://api.github.com/repos/rinchsan/gosimports/releases/92944201","Warn: release artifact v0.3.6 does not have provenance: https://api.github.com/repos/rinchsan/gosimports/releases/92942606","Warn: release artifact v0.3.5 does not have provenance: https://api.github.com/repos/rinchsan/gosimports/releases/81034677","Warn: release artifact v0.3.4 does not have provenance: https://api.github.com/repos/rinchsan/gosimports/releases/80634928"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 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-23T00:40:59.935Z","repository_id":37028023,"created_at":"2025-08-23T00:40:59.935Z","updated_at":"2025-08-23T00:40:59.935Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28486645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T22:47:06.728Z","status":"ssl_error","status_checked_at":"2026-01-16T22:46:52.401Z","response_time":107,"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":["alternative","go","goimports"],"created_at":"2026-01-16T22:51:48.135Z","updated_at":"2026-01-16T22:51:48.188Z","avatar_url":"https://github.com/rinchsan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note**\n\u003e APIs are likely to change a few times before we reach 1.0.0\n\n# gosimports - simpler goimports\n\n![](https://github.com/rinchsan/gosimports/workflows/CI/badge.svg)\n![](https://img.shields.io/github/release/rinchsan/gosimports.svg?colorB=7E7E7E)\n[![](https://pkg.go.dev/badge/github.com/rinchsan/gosimports.svg)](https://pkg.go.dev/github.com/rinchsan/gosimports/cmd/gosimports)\n\n- :rocket: Drop-in replacement for `goimports`\n- :100: Prettier than `goimports`\n- :hammer: Originally forked from `golang.org/x/tools/cmd/goimports`\n\n## Motivation\n\nThis `gosimports` provides one solution to the [goimports grouping/ordering problem](https://github.com/golang/go/issues/20818).\n\n## Installation\n\n### Go\n\n```bash\ngo install github.com/rinchsan/gosimports/cmd/gosimports@latest\n```\n\n### Homebrew\n\n```bash\nbrew install rinchsan/tap/gosimports\n```\n\n### Binary\n\nDownload binaries from [GitHub Releases](https://github.com/rinchsan/gosimports/releases)\n\n## Example\n\n```go\nimport (\n\t\"bufio\"\n\n\t// basic comments\n\n\t/*\n\t\tblock comments\n\t*/\n\n\t\"github.com/rinchsan/gosimports/internal/imports\"\n\n\t\"errors\"\n\tgocmd \"github.com/rinchsan/gosimports/internal/gocommand\"\n\t\"flag\"\n\n\t\"runtime\"\n\t_ \"runtime/pprof\" // trailing inline comments\n\t\"strings\"\n\n)\n```\n\n↓ `$ gosimports -w` :+1:\n\n```go\nimport (\n\t\"bufio\"\n\t\"errors\"\n\t\"flag\"\n\t\"runtime\"\n\t_ \"runtime/pprof\" // trailing inline comments\n\t\"strings\"\n\n\tgocmd \"github.com/rinchsan/gosimports/internal/gocommand\"\n\t\"github.com/rinchsan/gosimports/internal/imports\"\n)\n```\n\nwhile `goimports` formatting like below :-1:\n\n```go\nimport (\n\t\"bufio\"\n\n\t// basic comments\n\n\t/*\n\t\tblock comments\n\t*/\n\n\t\"github.com/rinchsan/gosimports/internal/imports\"\n\n\t\"errors\"\n\t\"flag\"\n\n\tgocmd \"github.com/rinchsan/gosimports/internal/gocommand\"\n\n\t\"runtime\"\n\t_ \"runtime/pprof\" // trailing inline comments\n\t\"strings\"\n)\n```\n\n## Module Usage\n\n### Installation\n\n```bash\ngo get github.com/rinchsan/gosimports\n```\n\n### Example\n\n```go\npackage main\n\nimport (\n\t\"os\"\n\n\t\"github.com/rinchsan/gosimports\"\n)\n\nfunc main() {\n\tsrc, err := os.ReadFile(\"gosimports.go\")\n\tif err != nil {\n\t\t// error handling\n\t}\n\n\tformatted, err := gosimports.Process(\"\", src, nil)\n\tif err != nil {\n\t\t// error handling\n\t}\n\n\tif err := os.WriteFile(\"gosimports.go\", formatted, 0644); err != nil {\n\t\t// error handling\n\t}\n}\n```\n\n## License\n\nCopyright 2013 The Go Authors. All rights reserved.\n\nUse of this source code is governed by a BSD-style license that can be found in the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinchsan%2Fgosimports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frinchsan%2Fgosimports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frinchsan%2Fgosimports/lists"}