Socket
Socket
Sign inDemoInstall

bpmnlint

Package Overview
Dependencies
Maintainers
3
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bpmnlint - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

.github/ISSUE_TEMPLATE/NEW_RULE.md

8

CHANGELOG.md

@@ -9,2 +9,10 @@ # Changelog

## 5.1.0
* `FEAT`: add `no-duplicate-sequenceflows` rule ([#22](https://github.com/bpmn-io/bpmnlint/issues/22))
* `FEAT`: catch more BPMN parse errors
* `FEAT`: be able to define multiple expected test results in `RuleTester`
* `FIX`: make `nyc` a development dependency
* `CHORE`: update to `bpmn-modddle@6`
## 5.0.0

@@ -11,0 +19,0 @@

1

config/all.js

@@ -9,2 +9,3 @@ const allRules = [

'no-disconnected',
'no-duplicate-sequence-flows',
'no-gateway-join-fork',

@@ -11,0 +12,0 @@ 'no-implicit-split',

@@ -10,2 +10,3 @@ module.exports = {

'no-disconnected': 'error',
'no-duplicate-sequence-flows': 'error',
'no-gateway-join-fork': 'error',

@@ -12,0 +13,0 @@ 'no-implicit-split': 'error',

22

lib/testers/rule-tester.js

@@ -61,5 +61,17 @@ /* global it, describe, beforeEach */

const expectedResult = {
...report,
category: 'error'
if (!Array.isArray(report)) {
report = [
report
];
}
const expectedResults = report.map(report => {
return {
...report,
category: 'error'
};
});
const expectedLintResults = {
[ruleName]: expectedResults
};

@@ -73,5 +85,3 @@

.then(lintResults => {
expectEqual(lintResults, {
[ruleName]: [ expectedResult ]
});
expectEqual(lintResults, expectedLintResults);
})

@@ -78,0 +88,0 @@ );

{
"name": "bpmnlint",
"version": "5.0.0",
"version": "5.1.0",
"main": "lib/index.js",

@@ -26,6 +26,7 @@ "keywords": [

"scripts": {
"all": "run-s lint test",
"all": "run-s lint test-coverage",
"lint": "eslint .",
"dev": "npm test -- --watch",
"test": "mocha -r esm --exclude 'test/integration/cli/**' 'test/**/*.js'"
"test": "mocha -r esm --exclude 'test/integration/cli/**' 'test/**/*.js'",
"test-coverage": "nyc --reporter=lcov --reporter=html npm test"
},

@@ -36,5 +37,5 @@ "bin": {

"dependencies": {
"bpmn-moddle": "^4.0.0",
"bpmn-moddle": "^6.0.0",
"bpmnlint-utils": "^1.0.1",
"chalk": "^2.4.1",
"chalk": "^2.4.2",
"cli-table": "^0.3.1",

@@ -45,11 +46,13 @@ "meow": "^5.0.0",

"devDependencies": {
"chai": "^4.1.2",
"eslint": "^5.3.0",
"eslint-plugin-bpmn-io": "^0.5.4",
"esm": "^3.0.81",
"execa": "^1.0.0",
"install-local": "^0.6.0",
"mocha": "^5.2.0",
"npm-run-all": "^4.1.3"
"chai": "^4.2.0",
"eslint": "^5.16.0",
"eslint-plugin-bpmn-io": "^0.8.2",
"esm": "^3.2.25",
"execa": "^2.0.3",
"install-local": "^1.0.0",
"mocha": "^6.2.0",
"npm-run-all": "^4.1.5",
"nyc": "^14.1.1",
"strip-indent": "^2.0.0"
}
}

@@ -10,5 +10,11 @@ # bpmnlint

Install the utility via [npm](https://www.npmjs.com/package/bpmnlint) and validate your diagrams via the commandline:
Install the utility via [npm](https://www.npmjs.com/package/bpmnlint):
```sh
npm install -g bpmnlint
```
Validate your diagrams via the commandline:
```sh
> bpmnlint invoice.bpmn

@@ -55,14 +61,18 @@

## Writing / Consuming Custom Rules
## Visual Feedback
Checkout [bpmnlint-plugin-example](https://github.com/bpmn-io/bpmnlint-plugin-example) to learn how to define and consume custom lint rules.
Integrate the linter via [bpmn-js-bpmnlint](https://github.com/bpmn-io/bpmn-js-bpmnlint) into [bpmn-js](https://github.com/bpmn-io/bpmn-js) and get direct feedback during modeling.
To try out visual validation, checkout the [bpmnlint playground](https://github.com/bpmn-io/bpmnlint-playground).
## Visual Feedback
Integrate the linter via [bpmn-js-bpmnlint](https://github.com/philippfromme/bpmn-js-bpmnlint) into [bpmn-js](https://github.com/bpmn-io/bpmn-js) and get direct feedback during modeling.
## Writing / Consuming Custom Rules
Use the [bpmnlint playground](https://github.com/bpmn-io/bpmnlint-playground) to implement new rules with quick visual feedback.
For more details on how to define and consume custom lint rules check out the [bpmnlint-plugin-example](https://github.com/bpmn-io/bpmnlint-plugin-example).
## License
MIT

@@ -10,3 +10,3 @@ const {

*/
module.exports = function(utils) {
module.exports = function() {

@@ -13,0 +13,0 @@ function hasEndEvent(node) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc