Gathering detailed insights and metrics for bpmnlint
Gathering detailed insights and metrics for bpmnlint
Gathering detailed insights and metrics for bpmnlint
Gathering detailed insights and metrics for bpmnlint
npm install bpmnlint
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
125 Stars
516 Commits
37 Forks
12 Watching
7 Branches
17 Contributors
Updated on 01 Nov 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.8%
3,007
Compared to previous day
Last week
-1.9%
15,205
Compared to previous week
Last month
-6.4%
66,304
Compared to previous month
Last year
65.3%
583,725
Compared to previous year
Validate your BPMN diagrams based on configurable lint rules.
Install the utility via npm:
1npm install -g bpmnlint
Validate your diagrams via the commandline:
1> bpmnlint invoice.bpmn 2 3/Projects/process-application/resources/invoice.bpmn 4 Flow_1 error Sequence flow is missing condition conditional-flows 5 Process error Process is missing end event end-event-required 6 Task_13 warning Element is missing label/name label-required 7 Event_12 warning Element is missing label/name label-required 8 Event_27 warning Element is missing label/name label-required 9 Process error Process is missing start event start-event-required 10 11✖ 6 problems (6 errors, 0 warnings)
Our documentation lists all currenty implemented rules, the ./rules
folder contains each rules implementation.
Do you miss a rule that should be included? Propose a new rule.
Create a .bpmnlintrc
file in your working directory and inherit from a common configuration using the extends
block:
1{ 2 "extends": "bpmnlint:recommended" 3}
Add or customize rules using the rules
block:
1{ 2 "extends": "bpmnlint:recommended", 3 "rules": { 4 "label-required": "off" 5 } 6}
Invoke the tool directly from NodeJS:
1import Linter from 'bpmnlint'; 2import NodeResolver from 'bpmnlint/lib/resolver/node-resolver'; 3 4import BpmnModdle from 'bpmn-moddle'; 5 6const moddle = new BpmnModdle(); 7 8const linter = new Linter({ 9 config: { 10 extends: 'bpmnlint:recommended' 11 }, 12 resolver: new NodeResolver() 13}); 14 15const xmlStr = ` 16 <?xml version="1.0" encoding="UTF-8"?> 17 <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" 18 id="definitions" 19 targetNamespace="http://bpmn.io/schema/bpmn"> 20 <bpmn:process id="process" /> 21 </bpmn:definitions> 22`; 23 24const { 25 rootElement: definitions 26} = await moddle.fromXML(xmlStr); 27 28const reports = linter.lint(definitions); 29 30// { 31// "end-event-required": [ 32// { 33// "id": "process", 34// "message": "Process is missing end event" 35// } 36// ], 37// ... 38// }
Create your first plug-in using the plugin creator:
1npm init bpmnlint-plugin {PLUGIN_NAME}
Checkout the bpmnlint-plugin-example for details on how to define, test, and consume custom lint rules. Use the bpmnlint playground to implement new rules with quick visual feedback.
For browser usage include your linting configuration using your favorite bundler plug-in (Rollup, Webpack).
Integrate the linter via bpmn-js-bpmnlint into bpmn-js and get direct feedback during modeling.
To try out visual validation, checkout the bpmnlint playground.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
20 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 6
Details
Reason
Found 7/20 approved changesets -- score normalized to 3
Reason
9 existing vulnerabilities detected
Details
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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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