Comparing version 6.4.0 to 6.5.0
@@ -15,2 +15,3 @@ #!/usr/bin/env node | ||
const tinyGlob = require('tiny-glob'); | ||
const readFile = promisify(fs.readFile); | ||
@@ -37,2 +38,10 @@ | ||
function glob(files) { | ||
return Promise.all( | ||
cli.input.map( | ||
file => tinyGlob(file, { dot: true }) | ||
) | ||
).then(files => [].concat(...files)); | ||
} | ||
/** | ||
@@ -281,5 +290,7 @@ * Reads XML form path and return moddle object | ||
for (let i = 0; i < cli.input.length; i++) { | ||
let results = await lintDiagram(cli.input[i], config); | ||
const files = await glob(cli.input); | ||
for (let i = 0; i < files.length; i++) { | ||
let results = await lintDiagram(files[i], config); | ||
errorCount += results.errorCount; | ||
@@ -348,2 +359,2 @@ warningCount += results.warningCount; | ||
run().catch(logAndExit); | ||
run().catch(logAndExit); |
@@ -9,2 +9,7 @@ # Changelog | ||
## 6.5.0 | ||
* `FEAT`: add globbing support ([#46](https://github.com/bpmn-io/bpmnlint/issues/46)) | ||
* `DOCS`: add explaination to `no-inclusive-gateway` rule | ||
## 6.4.0 | ||
@@ -11,0 +16,0 @@ |
{ | ||
"name": "bpmnlint", | ||
"description": "Validate your BPMN diagrams based on configurable lint rules", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"main": "lib/index.js", | ||
@@ -45,3 +45,4 @@ "keywords": [ | ||
"meow": "^5.0.0", | ||
"pluralize": "^7.0.0" | ||
"pluralize": "^7.0.0", | ||
"tiny-glob": "^0.2.8" | ||
}, | ||
@@ -48,0 +49,0 @@ "devDependencies": { |
# bpmnlint | ||
[![Build Status](https://travis-ci.org/bpmn-io/bpmnlint.svg?branch=master)](https://travis-ci.org/bpmn-io/bpmnlint) | ||
[![Build Status](https://travis-ci.com/bpmn-io/bpmnlint.svg?branch=master)](https://travis-ci.com/bpmn-io/bpmnlint) | ||
@@ -5,0 +5,0 @@ Validate your BPMN diagrams based on configurable lint rules. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47309
1398
7
+ Addedtiny-glob@^0.2.8
+ Addedglobalyzer@0.1.0(transitive)
+ Addedglobrex@0.1.2(transitive)
+ Addedtiny-glob@0.2.9(transitive)