{"id":33914718,"url":"https://github.com/vidavidorra/commitlint-plugin-function-rules","last_synced_at":"2026-01-17T01:16:01.275Z","repository":{"id":38356838,"uuid":"286565802","full_name":"vidavidorra/commitlint-plugin-function-rules","owner":"vidavidorra","description":"commitlint plugin to use functions as rule value","archived":false,"fork":false,"pushed_at":"2026-01-11T01:35:16.000Z","size":6595,"stargazers_count":49,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-11T09:26:18.368Z","etag":null,"topics":["commitlint","commitlintplugin","function","plugin","rules"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vidavidorra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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},"funding":{"github":"jdbruijn"}},"created_at":"2020-08-10T19:50:50.000Z","updated_at":"2026-01-11T01:35:19.000Z","dependencies_parsed_at":"2022-07-16T23:30:40.696Z","dependency_job_id":"3bca7792-8125-4ef3-bb04-de312a4019d4","html_url":"https://github.com/vidavidorra/commitlint-plugin-function-rules","commit_stats":{"total_commits":625,"total_committers":7,"mean_commits":89.28571428571429,"dds":0.5536,"last_synced_commit":"0850ccdc0d667768f95633245cce60f020a9d55f"},"previous_names":[],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/vidavidorra/commitlint-plugin-function-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidavidorra%2Fcommitlint-plugin-function-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidavidorra%2Fcommitlint-plugin-function-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidavidorra%2Fcommitlint-plugin-function-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidavidorra%2Fcommitlint-plugin-function-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vidavidorra","download_url":"https://codeload.github.com/vidavidorra/commitlint-plugin-function-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vidavidorra%2Fcommitlint-plugin-function-rules/sbom","scorecard":{"id":86759,"data":{"date":"2025-08-04","repo":{"name":"github.com/vidavidorra/commitlint-plugin-function-rules","commit":"cf0f830d9190fd81e48a9da0d08eb83d8224f549"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":5.3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci-cd.yml: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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   6 out of   6 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/vidavidorra/.github/.github/SECURITY.md:1","Info: Found linked content: github.com/vidavidorra/.github/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/vidavidorra/.github/.github/SECURITY.md:1","Info: Found text in security policy: github.com/vidavidorra/.github/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v4.0.2 not signed: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/221801851","Warn: release artifact v4.0.1 not signed: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/183422667","Warn: release artifact v4.0.0 not signed: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/148318635","Warn: release artifact v4.0.0-beta.2 not signed: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/148316256","Warn: release artifact v4.0.0-beta.1 not signed: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/146942069","Warn: release artifact v4.0.2 does not have provenance: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/221801851","Warn: release artifact v4.0.1 does not have provenance: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/183422667","Warn: release artifact v4.0.0 does not have provenance: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/148318635","Warn: release artifact v4.0.0-beta.2 does not have provenance: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/148316256","Warn: release artifact v4.0.0-beta.1 does not have provenance: https://api.github.com/repos/vidavidorra/commitlint-plugin-function-rules/releases/146942069"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: 'up-to-date branches' is disabled on branch 'main'","Info: status check found to merge onto on branch 'main'","Warn: PRs are not required to make changes on branch 'main'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T07:05:39.143Z","repository_id":38356838,"created_at":"2025-08-15T07:05:39.143Z","updated_at":"2025-08-15T07:05:39.143Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["commitlint","commitlintplugin","function","plugin","rules"],"created_at":"2025-12-12T06:37:18.505Z","updated_at":"2026-01-17T01:16:01.265Z","avatar_url":"https://github.com/vidavidorra.png","language":"TypeScript","readme":"# [**commitlint**][commitlint] plugin function rules \u003c!-- omit in toc --\u003e\n\n[**commitlint**][commitlint] plugin to use functions as rule value.\n\n- Create custom function, `sync` or `async`, as rule value.\n- Create rules that are based on the commit message.\n- Write rules with regular expressions.\n- Use the same rules that are [available in **commitlint**][commitlint].\n\n---\n\n[![npm version](https://img.shields.io/npm/v/commitlint-plugin-function-rules?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/commitlint-plugin-function-rules)\n[![npm downloads](https://img.shields.io/npm/dm/commitlint-plugin-function-rules?logo=npm\u0026style=flat-square)](https://www.npmjs.com/package/commitlint-plugin-function-rules)\n[![Node.js version support](https://img.shields.io/node/v/commitlint-plugin-function-rules?logo=node.js\u0026style=flat-square)](https://nodejs.org/en/about/releases/)\n[![Renovate enabled](https://img.shields.io/badge/Renovate-enabled-brightgreen?logo=renovatebot\u0026logoColor\u0026style=flat-square)](https://renovatebot.com)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079?style=flat-square)](https://github.com/semantic-release/semantic-release)\n[![Code coverage](https://img.shields.io/codecov/c/github/vidavidorra/commitlint-plugin-function-rules?logo=codecov\u0026style=flat-square)](https://codecov.io/gh/vidavidorra/commitlint-plugin-function-rules)\n[![License](https://img.shields.io/github/license/vidavidorra/commitlint-plugin-function-rules?style=flat-square)](LICENSE.md)\n\n- [Install](#install)\n- [Usage](#usage)\n- [Contributing](#contributing)\n- [Security policy](#security-policy)\n- [License](#license)\n\n## Install\n\n```shell\nnpm install --save-dev commitlint-plugin-function-rules @commitlint/cli @commitlint/config-conventional\n```\n\n## Usage\n\nUse this plugin in your project's [**commitlint**][commitlint] configuration by specifying it as item in the `plugins` array. All rules have same name as rules that are [available in **commitlint**][rules], but with the `function-rules` prefix. The example `commitlint.config.js`, or `commitlint.config.cjs` if the package is an ES module, shows the usage of a function rule.\n\n\u003e **Note** The available rules are the same as in [**commitlint**][commitlint], so it is recommended to disable the [**commitlint**][commitlint] rule when specifying a function rule to avoid undefined behaviour.\n\n```js\nmodule.exports = {\n  extends: ['@commitlint/config-conventional'],\n  plugins: ['commitlint-plugin-function-rules'],\n  rules: {\n    'header-max-length': [0], // level: disabled\n    'function-rules/header-max-length': [\n      2, // level: error\n      'always',\n      (parsed) =\u003e {\n        // Allow longer headers for commits with \"deps\" scope.\n        if (parsed.scope === 'deps' \u0026\u0026 parsed.header.length \u003c= 200) {\n          return [true];\n        }\n        return [false, 'deps header must not be longer than 200 characters'];\n      },\n    ],\n  },\n};\n```\n\n## Contributing\n\nPlease [create an issue](https://github.com/vidavidorra/commitlint-plugin-function-rules/issues/new/choose) if you have a bug report or feature proposal, or [create a discussion](https://github.com/vidavidorra/commitlint-plugin-function-rules/discussions) if you have a question. If you like this project, please consider giving it a star ⭐\n\nRefer to the [contributing guide](https://github.com/vidavidorra/.github/blob/main/CONTRIBUTING.md) for detailed information about other contributions, like pull requests.\n\n[![Conventional Commits: 1.0.0](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow?style=flat-square)](https://conventionalcommits.org)\n[![Linter](https://img.shields.io/badge/Linter-ESLint-4B32C3?logo=eslint\u0026style=flat-square)](https://eslint.org/)\n[![XO code style](https://shields.io/badge/code_style-5ed9c7?logo=xo\u0026labelColor=gray\u0026style=flat-square)](https://github.com/xojs/xo)\n[![Code style](https://img.shields.io/badge/code_style-Prettier-ff69b4?logo=prettier\u0026style=flat-square)](https://github.com/prettier/prettier)\n\n## Security policy\n\nPlease refer to the [Security Policy on GitHub](https://github.com/vidavidorra/commitlint-plugin-function-rules/security/) for the security policy.\n\n## License\n\nThis project is licensed under the [GPLv3 license](https://www.gnu.org/licenses/gpl.html).\n\nCopyright © 2020-2026 Jeroen de Bruijn\n\n\u003cdetails\u003e\u003csummary\u003eLicense notice\u003c/summary\u003e\n\u003cp\u003e\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program. If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n\nThe full text of the license is available in the [LICENSE](LICENSE.md) file in this repository and [online](https://www.gnu.org/licenses/gpl.html).\n\n\u003c/details\u003e\n\n\u003c!-- References --\u003e\n\n[commitlint]: https://commitlint.js.org/\n[rules]: https://commitlint.js.org/#/reference-rules\n","funding_links":["https://github.com/sponsors/jdbruijn"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidavidorra%2Fcommitlint-plugin-function-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvidavidorra%2Fcommitlint-plugin-function-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvidavidorra%2Fcommitlint-plugin-function-rules/lists"}