{"id":13646659,"url":"https://github.com/ashwch/precommit-vet-lint","last_synced_at":"2026-01-27T03:17:18.512Z","repository":{"id":57506916,"uuid":"74822121","full_name":"ashwch/precommit-vet-lint","owner":"ashwch","description":"A precommit hook that runs Golint and Vet on your staged go files.","archived":false,"fork":false,"pushed_at":"2016-11-26T11:53:52.000Z","size":7,"stargazers_count":29,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T21:38:30.641Z","etag":null,"topics":["go-vet","golang","golint","hooks","pre-commit"],"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/ashwch.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":"2016-11-26T11:37:27.000Z","updated_at":"2019-07-20T12:07:54.000Z","dependencies_parsed_at":"2022-08-29T20:32:03.529Z","dependency_job_id":null,"html_url":"https://github.com/ashwch/precommit-vet-lint","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ashwch/precommit-vet-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwch%2Fprecommit-vet-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwch%2Fprecommit-vet-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwch%2Fprecommit-vet-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwch%2Fprecommit-vet-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashwch","download_url":"https://codeload.github.com/ashwch/precommit-vet-lint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashwch%2Fprecommit-vet-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-vet","golang","golint","hooks","pre-commit"],"created_at":"2024-08-02T01:03:02.256Z","updated_at":"2026-01-27T03:17:18.493Z","avatar_url":"https://github.com/ashwch.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"Precommit-vet-lint\n===\n\nA precommit hook that runs on your staged Go file and reports errors returned by [Golint](https://github.com/golang/lint) and [Vet](https://golang.org/cmd/vet/).\n\n### Installation\n---\n\n```bash\ngo get -u github.com/golang/lint/golint\ngo get -u github.com/ashwch/precommit-vet-lint\n```\n\n### Usage\n---\n\nCopy the contents of pre-commit file included with this repo in your `.git/hooks/pre-commit` file. Make sure the file has executable permissions.\n\n\n### Example\n\n```bash\n$ git status\nOn branch master\nChanges to be committed:\n  (use \"git reset HEAD \u003cfile\u003e...\" to unstage)\n\n    new file:   helpers.go\n    new file:   precommit-vet-lint.go\n\nUntracked files:\n  (use \"git add \u003cfile\u003e...\" to include in what will be committed)\n\n    precommit-vet-lint\n\n$ git commit -m \"Added core files\"\nRunning Golint and Vet...\nFailed Following linting error(s) found:\nhelpers.go:14:1: exported function CheckError should have comment or be unexported\nhelpers.go:20:1: exported function GetStagedFiles should have comment or be unexported\nhelpers.go:48:1: exported function GetProjectBasePath should have comment or be unexported\nhelpers.go:53:1: exported function GetStagedContent should have comment or be unexported\nhelpers.go:60:1: exported function GetLintErrors should have comment or be unexported\nhelpers.go:69:1: exported function GetVetErrors should have comment or be unexported\nhelpers.go:83:6: exported type TempDir should have comment or be unexported\nhelpers.go:87:1: exported method TempDir.Create should have comment or be unexported\nhelpers.go:93:1: exported method TempDir.Close should have comment or be unexported.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwch%2Fprecommit-vet-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashwch%2Fprecommit-vet-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashwch%2Fprecommit-vet-lint/lists"}