{"id":18028200,"url":"https://github.com/llorllale/go-gitlint","last_synced_at":"2026-04-18T04:01:34.419Z","repository":{"id":48048089,"uuid":"165782556","full_name":"llorllale/go-gitlint","owner":"llorllale","description":"Go lint your commit messages!","archived":false,"fork":false,"pushed_at":"2026-04-18T02:06:09.000Z","size":103,"stargazers_count":86,"open_issues_count":5,"forks_count":14,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-18T03:34:22.638Z","etag":null,"topics":["git","go","golang","lint","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llorllale.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,"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":"2019-01-15T03:59:54.000Z","updated_at":"2026-04-18T02:01:57.000Z","dependencies_parsed_at":"2024-06-18T16:47:48.985Z","dependency_job_id":"5f9d1321-e9b4-414a-912f-7df4f4c0c015","html_url":"https://github.com/llorllale/go-gitlint","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/llorllale/go-gitlint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llorllale%2Fgo-gitlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llorllale%2Fgo-gitlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llorllale%2Fgo-gitlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llorllale%2Fgo-gitlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llorllale","download_url":"https://codeload.github.com/llorllale/go-gitlint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llorllale%2Fgo-gitlint/sbom","scorecard":{"id":595799,"data":{"date":"2025-08-11","repo":{"name":"github.com/llorllale/go-gitlint","commit":"5dd6bc6b083065391241455c0c8efd2f02995805"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 2/26 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":"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":"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":"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":"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: downloadThenRun not pinned by hash: dependencies.sh:50","Warn: goCommand not pinned by hash: dependencies.sh:69","Info:   0 out of   1 downloadThenRun dependencies pinned","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":"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 1.1.0 not signed: https://api.github.com/repos/llorllale/go-gitlint/releases/19992175","Warn: release artifact 1.0.0 not signed: https://api.github.com/repos/llorllale/go-gitlint/releases/18161985","Warn: release artifact 1.0.0-rc1 not signed: https://api.github.com/repos/llorllale/go-gitlint/releases/15933879","Warn: release artifact 0.8.0 not signed: https://api.github.com/repos/llorllale/go-gitlint/releases/15908903","Warn: release artifact 0.7.0 not signed: https://api.github.com/repos/llorllale/go-gitlint/releases/15908593","Warn: release artifact 1.1.0 does not have provenance: https://api.github.com/repos/llorllale/go-gitlint/releases/19992175","Warn: release artifact 1.0.0 does not have provenance: https://api.github.com/repos/llorllale/go-gitlint/releases/18161985","Warn: release artifact 1.0.0-rc1 does not have provenance: https://api.github.com/repos/llorllale/go-gitlint/releases/15933879","Warn: release artifact 0.8.0 does not have provenance: https://api.github.com/repos/llorllale/go-gitlint/releases/15908903","Warn: release artifact 0.7.0 does not have provenance: https://api.github.com/repos/llorllale/go-gitlint/releases/15908593"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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 23 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":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2456 / GHSA-449p-3h89-pw88","Warn: Project is vulnerable to: GO-2024-2466 / GHSA-mw99-9chc-xw7r","Warn: Project is vulnerable to: GO-2025-3367 / GHSA-r9px-m959-cxf4","Warn: Project is vulnerable to: GO-2025-3368 / GHSA-v725-9546-7q7m"],"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-20T23:07:29.617Z","repository_id":48048089,"created_at":"2025-08-20T23:07:29.617Z","updated_at":"2025-08-20T23:07:29.617Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31955919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["git","go","golang","lint","linter"],"created_at":"2024-10-30T08:14:27.676Z","updated_at":"2026-04-18T04:01:34.400Z","avatar_url":"https://github.com/llorllale.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Release](https://img.shields.io/github/release/llorllale/go-gitlint.svg?style=flat-square)](https://github.com/llorllale/go-gitlint/releases/latest)\n![Build Status](https://github.com/llorllale/go-gitlint/actions/workflows/ci-cd.yaml/badge.svg)\n[![codecov](https://codecov.io/gh/llorllale/go-gitlint/branch/master/graph/badge.svg)](https://codecov.io/gh/llorllale/go-gitlint)\n[![Go Report Card](https://goreportcard.com/badge/github.com/llorllale/go-gitlint?style=flat-square)](https://goreportcard.com/report/github.com/llorllale/go-gitlint)\n[![Powered By: GoReleaser](https://img.shields.io/badge/powered%20by-goreleaser-green.svg)](https://github.com/goreleaser)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/llorllale/go-gitlint)\n[![PDD status](http://www.0pdd.com/svg?name=llorllale/go-gitlint)](http://www.0pdd.com/p?name=llorllale/go-gitlint)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://raw.githubusercontent.com/llorllale/go-gitlint/master/LICENSE)\n\n# go-gitlint\nLint your git!\n\n## Usage\n```\n$ ./gitlint --help\nusage: gitlint [\u003cflags\u003e]\n\nFlags:\n  --help                       Show context-sensitive help (also try --help-long and --help-man).\n  --path=\".\"                   Path to the git repo (default: \".\").\n  --subject-regex=\".*\"         Commit subject line must conform to this regular expression (default: \".*\").\n  --subject-maxlen=2147483646  Max length for commit subject line (default: math.MaxInt32 - 1).\n  --subject-minlen=0           Min length for commit subject line (default: 0).\n  --body-regex=\".*\"            Commit message body must conform to this regular expression (default: \".*\").\n  --body-maxlen=2147483646     Max length for commit body (default: math.MaxInt32 - 1)\n  --since=\"1970-01-01\"         A date in \"yyyy-MM-dd\" format starting from which commits will be analyzed (default: \"1970-01-01\").\n  --msg-file=\"\"                Only analyze the commit message found in this file (default: \"\").\n  --max-parents=1              Max number of parents a commit can have in order to be analyzed (default: 1). Useful for excluding merge commits.\n  --excl-author-names=\"$a\"     Don't lint commits with authors whose names match these comma-separated regular expressions (default: '$a').\n  --excl-author-emails=\"$a\"    Don't lint commits with authors whose emails match these comma-separated regular expressions (default: '$a').\n```\nAdditionally, it will look for configurations in a file `.gitlint` in the current directory if it exists. This file's format is just the same command line flags but each on a separate line. *Flags passed through the command line take precedence.*\n\n### Integration\n\n#### With Git\nLint your commit message when committing to your local branch.\n\nAdd a `commit-msg` hook to your Git repo:\n\n1. Create hook: `echo 'gitlint --msg-file=$1' \u003e .git/hooks/commit-msg`\n2. Make it executable: `chmod +x .git/hooks/commit-msg`\n\nNow your commits will be validated after saving and closing the commit message in your text editor.\n\n#### With GitHub Actions\nTo integrate it as GitHub action into CI pipeline use [gitlint-action](https://github.com/g4s8/gitlint-action).\n\n#### With any CI pipeline\n\nUse [`download-gitlint.sh`](https://raw.githubusercontent.com/llorllale/go-gitlint/master/download-gitlint.sh):\n\n1. `curl https://raw.githubusercontent.com/llorllale/go-gitlint/master/download-gitlint.sh \u003e download-gitlint.sh`\n2. `chmod +x download-gitlint.sh`\n\nUsage:\n```\n$ ./download-gitlint.sh -h\n./download-gitlint.sh: download go binaries for llorllale/go-gitlint\n\nUsage: ./download-gitlint.sh [-b] bindir [-d] [tag]\n  -b sets bindir or installation directory, Defaults to ./bin\n  -d turns on debug logging\n   [tag] is a tag from\n   https://github.com/llorllale/go-gitlint/releases\n   If tag is missing, then the latest will be used.\n\n Generated by godownloader\n  https://github.com/goreleaser/godownloader\n```\n\n### Exit codes\n\n`gitlint`'s exit code will equal the number of issues found with your commit(s).\n\n## Motivation\n\n- [X] Validate format of commit message subject and body\n- [X] Lint commit msgs on varios development platforms (Windows, Linux, Mac)\n- [X] Configuration from file with cli args taking precedence\n- [X] [`commit-msg`](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) hook to validate my commit's msg\n- [X] Performance (because a slow pre-commit hook would render the git workflow unmanageable)\n- [X] My first Go project :)\n\n## Contributing\nFork this repo, make sure `make checks` works, **and then** open a PR.\n\n## Build dependencies\nTo run `make checks` you will need Go `1.25.x` and Ruby `3.x` (for `pdd` - see  below).\n[Ruby Version Manager](https://rvm.io/) is highly recommended.\n\nThe `make dependencies` recipe attempts to download and install the following:\n\n* [pdd](https://github.com/yegor256/pdd)\n* [pre-commit](https://pre-commit.com/)\n* [weasel](https://github.com/comcast/weasel)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllorllale%2Fgo-gitlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllorllale%2Fgo-gitlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllorllale%2Fgo-gitlint/lists"}