bpmnlint
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -9,5 +9,9 @@ # Changelog | ||
## 6.1.0 | ||
* `FEAT`: resolve local rules in plug-ins without prefix ([`640e411a`](https://github.com/bpmn-io/bpmnlint/commit/ 640e411ac8c6045198bd09b79b5c53c6e29e251c)) | ||
## 6.0.0 | ||
* `FEAT`: resolve plug-in provided rules/configuration local to working directory | ||
* `FEAT`: resolve plug-in provided rules/configuration local to working directory ([`f1bf331f`](https://github.com/bpmn-io/bpmnlint/commit/f1bf331f4bcece62de16da34bb3f8fda08182fbc)) | ||
* `CHORE`: improve errors on rule/plugin resolution failures | ||
@@ -14,0 +18,0 @@ * `CHORE`: require `>= node@10.12` |
@@ -345,2 +345,4 @@ const testRule = require('./test-rule'); | ||
const rulePrefix = pkg.startsWith('bpmnlint-plugin-') && pkg.replace('bpmnlint-plugin-', ''); | ||
const validatedRules = Object.keys(rules).reduce((normalizedRules, name) => { | ||
@@ -350,5 +352,13 @@ | ||
// prefix local rule definition | ||
if (name.indexOf('bpmnlint/') === 0) { | ||
name = name.substring('bpmnlint/'.length); | ||
// drop bpmnlint prefix, if existing | ||
if (name.startsWith('bpmnlint/')) { | ||
name = name.replace('bpmnlint/', ''); | ||
} else | ||
if (rulePrefix) { | ||
// prefix local rule definition | ||
if (!name.startsWith(rulePrefix)) { | ||
name = `${rulePrefix}/${name}`; | ||
} | ||
} | ||
@@ -355,0 +365,0 @@ |
{ | ||
"name": "bpmnlint", | ||
"description": "Validate your BPMN diagrams based on configurable lint rules", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
42706
1287