{"id":13771273,"url":"https://github.com/pavius/impi","last_synced_at":"2026-01-31T18:13:38.458Z","repository":{"id":27122343,"uuid":"105819792","full_name":"pavius/impi","owner":"pavius","description":"Verify proper golang import directives, beyond the capability of gofmt and goimports.","archived":false,"fork":false,"pushed_at":"2021-06-10T23:33:37.000Z","size":150,"stargazers_count":24,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-11T03:36:25.585Z","etag":null,"topics":["go","import","linter"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pavius.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":"2017-10-04T21:22:23.000Z","updated_at":"2025-05-08T08:07:52.000Z","dependencies_parsed_at":"2022-08-07T12:15:28.950Z","dependency_job_id":null,"html_url":"https://github.com/pavius/impi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pavius/impi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavius%2Fimpi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavius%2Fimpi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavius%2Fimpi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavius%2Fimpi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavius","download_url":"https://codeload.github.com/pavius/impi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavius%2Fimpi/sbom","scorecard":{"id":724051,"data":{"date":"2025-08-11","repo":{"name":"github.com/pavius/impi","commit":"3cdbde3d3cbb0ead2b9491272bccb5c652174656"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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 5/12 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":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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: goCommand not pinned by hash: vendor/github.com/stretchr/testify/.travis.gogenerate.sh:7","Info:   0 out of   1 goCommand 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":"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: MIT 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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/pavius/impi/releases/26836408","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/pavius/impi/releases/26830235","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/pavius/impi/releases/25089095","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/pavius/impi/releases/26836408","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/pavius/impi/releases/26830235","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/pavius/impi/releases/25089095"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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":"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"}}]},"last_synced_at":"2025-08-22T12:13:51.897Z","repository_id":27122343,"created_at":"2025-08-22T12:13:51.897Z","updated_at":"2025-08-22T12:13:51.897Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28949278,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"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":["go","import","linter"],"created_at":"2024-08-03T17:00:49.738Z","updated_at":"2026-01-31T18:13:38.440Z","avatar_url":"https://github.com/pavius.png","language":"Go","funding_links":[],"categories":["Linters"],"sub_categories":["Style and Patterns Checking"],"readme":"[![Build Status](https://travis-ci.org/pavius/impi.svg)](https://travis-ci.org/pavius/impi)\n[![Go Report Card](https://goreportcard.com/badge/github.com/pavius/impi)](https://goreportcard.com/report/github.com/pavius/impi)\n\n## impi\nVerify proper golang import directives, beyond the capability of gofmt and goimports. Rather than just verifying import order, it classifies imports to three types:\n1. `Std`: Standard go imports like `fmt`, `os`, `encoding/json`\n2. `Local`: Packages which are part of the current project\n3. `Third party`: Packages which are not standard and not local\n\nIt can then verify, according to the chosen scheme, that each import resides in the proper import group. Import groups are declared in the `import()` directive and are separated by an empty line:\n\n```\nimport(\n    \"Group #1 import #1\"\n    \"Group #1 import #2\"\n\n    \"Group #2 import #1\"\n    \"Group #2 import #2\"\n    // comments are allowed within a group\n    \"Group #2 import #3\"\n\n    \"Group #3 import #1\"\n    \"Group #3 import #2\"\n)\n```\n\nNote that impi does not support regenerating the files, only warns of infractions. \n\n## Usage\n```\ngo get -u github.com/pavius/impi/cmd/impi\nimpi [--local \u003clocal import prefix\u003e] [--ignore-generated=\u003cbool\u003e] --scheme \u003cscheme\u003e \u003cpackages\u003e\n```\n\n[nuclio](https://github.com/nuclio/nuclio) uses impi as follows:\n```\nimpi --local github.com/nuclio/nuclio/ --scheme stdLocalThirdParty ./cmd/... ./pkg/...\n```\n\n## Ignoring Generated Files\n\nSet `--ignore-generated=true` to ignore files that have been generated by `go generate`.\n\n## Supported schemes\n\nimpi currently supports the following schemes:\n1. `stdLocalThirdParty`: `Std -\u003e Local -\u003e Third party`\n2. `stdThirdPartyLocal`: `Std -\u003e Third party -\u003e Local`\n\nimpi will obviously not fail if a group is missing. For example, `stdThirdPartyLocal` also allows `Std -\u003e Local`, `Third party -\u003e Local`, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavius%2Fimpi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavius%2Fimpi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavius%2Fimpi/lists"}