{"id":22695523,"url":"https://github.com/cou929/efc","last_synced_at":"2025-03-29T17:45:02.076Z","repository":{"id":136208230,"uuid":"195652101","full_name":"cou929/efc","owner":"cou929","description":"Error format checker for projects which uses pkg/errors","archived":false,"fork":false,"pushed_at":"2019-07-07T23:30:21.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-04T18:50:38.620Z","etag":null,"topics":["go","static-code-analysis"],"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/cou929.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-07T13:06:06.000Z","updated_at":"2019-07-07T23:30:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2daf87d-fd79-48c9-b906-4c6d7b8cdc16","html_url":"https://github.com/cou929/efc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cou929%2Fefc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cou929%2Fefc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cou929%2Fefc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cou929%2Fefc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cou929","download_url":"https://codeload.github.com/cou929/efc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223266,"owners_count":20743158,"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":["go","static-code-analysis"],"created_at":"2024-12-10T04:09:53.845Z","updated_at":"2025-03-29T17:45:02.058Z","avatar_url":"https://github.com/cou929.png","language":"Go","readme":"# efc\n\nError printing format checker.\n\nefc reports printing format which does not use `%+v` directive for error type.\n\nIntend to be applied to projects which uses [pkg/errors](https://github.com/pkg/errors). See also https://godoc.org/github.com/pkg/errors#hdr-Formatted_printing_of_errors\n\n## Insall\n\n```\ngo install github.com/cou929/efc/cmd/efc\n```\n\n## Example\n\n```go\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n\tvar err error\n\tfmt.Printf(\"err %v\", err)\n}\n```\n\nefc reports this source like below:\n\n```\n$ efc -c=0 ./...\npath/to/file/sample.go:7:2: should use %+v format for error type\n7               fmt.Printf(\"err %v\", err)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcou929%2Fefc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcou929%2Fefc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcou929%2Fefc/lists"}