-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add bpmnlint recommended rules built-in
- Loading branch information
Showing
6 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
client/src/plugins/linting/bpmnlint-recommended-rules/.bpmnlintrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"extends": "bpmnlint:recommended", | ||
"rules": { | ||
"conditional-flows": "warn", | ||
"end-event-required": "warn", | ||
"event-sub-process-typed-start-event": "warn", | ||
"fake-join": "warn", | ||
"label-required": "warn", | ||
"no-bpmndi": "warn", | ||
"no-complex-gateway": "warn", | ||
"no-disconnected": "warn", | ||
"no-duplicate-sequence-flows": "warn", | ||
"no-gateway-join-fork": "warn", | ||
"no-implicit-split": "warn", | ||
"no-inclusive-gateway": "warn", | ||
"single-blank-start-event": "warn", | ||
"single-event-definition": "warn", | ||
"start-event-required": "warn", | ||
"sub-process-blank-start-event": "warn", | ||
"superfluous-gateway": "warn" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
client/src/plugins/linting/bpmnlint-recommended-rules/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
* under one or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information regarding copyright | ||
* ownership. | ||
* | ||
* Camunda licenses this file to you under the MIT; you may not use this file | ||
* except in compliance with the MIT License. | ||
*/ | ||
|
||
import { | ||
registerClientPlugin | ||
} from 'camunda-modeler-plugin-helpers'; | ||
|
||
import recommendedRules from './.bpmnlintrc'; | ||
|
||
registerClientPlugin(recommendedRules, 'lintRules.bpmn'); | ||
registerClientPlugin(recommendedRules, 'lintRules.cloud-bpmn'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.