Gathering detailed insights and metrics for commitlint-plugin-function-rules
Gathering detailed insights and metrics for commitlint-plugin-function-rules
Gathering detailed insights and metrics for commitlint-plugin-function-rules
Gathering detailed insights and metrics for commitlint-plugin-function-rules
commitlint plugin to use functions as rule value
npm install commitlint-plugin-function-rules
Typescript
Module System
Min. Node Version
Node Version
NPM Version
93.9
Supply Chain
83.6
Quality
81.7
Maintenance
100
Vulnerability
79
License
TypeScript (87.67%)
JavaScript (12.33%)
Total Downloads
6,133,190
Last Day
2,267
Last Week
67,676
Last Month
263,249
Last Year
2,353,549
GPL-3.0 License
44 Stars
1,021 Commits
3 Forks
2 Watchers
1 Branches
3 Contributors
Updated on Jun 09, 2025
Latest Version
4.0.2
Package Id
commitlint-plugin-function-rules@4.0.2
Unpacked Size
44.09 kB
Size
14.93 kB
File Count
9
NPM Version
10.9.2
Node Version
22.15.0
Published on
May 29, 2025
Cumulative downloads
Total Downloads
Last Day
-45.1%
2,267
Compared to previous day
Last Week
-0.4%
67,676
Compared to previous week
Last Month
28.5%
263,249
Compared to previous month
Last Year
30.4%
2,353,549
Compared to previous year
1
commitlint plugin to use functions as rule value.
sync
or async
, as rule value.1npm install --save-dev commitlint-plugin-function-rules @commitlint/cli @commitlint/config-conventional
Use this plugin in your project's commitlint configuration by specifying it as item in the plugins
array. All rules have same name as rules that are available in commitlint, 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.
Note The available rules are the same as in commitlint, so it is recommended to disable the commitlint rule when specifying a function rule to avoid undefined behaviour.
1module.exports = { 2 extends: ['@commitlint/config-conventional'], 3 plugins: ['commitlint-plugin-function-rules'], 4 rules: { 5 'header-max-length': [0], // level: disabled 6 'function-rules/header-max-length': [ 7 2, // level: error 8 'always', 9 (parsed) => { 10 // Allow longer headers for commits with "deps" scope. 11 if (parsed.scope === 'deps' && parsed.header.length <= 200) { 12 return [true]; 13 } 14 return [false, 'deps header must not be longer than 200 characters']; 15 }, 16 ], 17 }, 18};
Please create an issue if you have a bug report or feature proposal, or create a discussion if you have a question. If you like this project, please consider giving it a star ⭐
Refer to the contributing guide for detailed information about other contributions, like pull requests.
Please refer to the Security Policy on GitHub for the security policy.
This project is licensed under the GPLv3 license.
Copyright © 2020-2025 Jeroen de Bruijn
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
The full text of the license is available in the LICENSE file in this repository and online.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-02
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More