You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dmnlint

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dmnlint

Validate your DMN diagrams based on configurable lint rules

0.2.0
latest
Source
npmnpm
Version published
Weekly downloads
194
-6.73%
Maintainers
1
Weekly downloads
 
Created
Source

dmnlint

Build Status

Validate your DMN diagrams based on configurable lint rules.

Usage

Install the utility via npm:

npm install -g dmnlint

Validate your diagrams via the command line:

> dmnlint invoice.dmn

/Projects/process-application/resources/invoice.dmn
  InputData_13   error  Element is missing label/name       label-required
  Decision_12    error  Element is missing label/name       label-required

✖ 2 problems (2 errors, 0 warnings)

Rules

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.

Configuration

Create a .dmnlintrc file in your working directory and inherit from a common configuration using the extends block:

{
  "extends": "dmnlint:recommended"
}

Add or customize rules using the rules block:

{
  "extends": "dmnlint:recommended",
  "rules": {
    "label-required": "off"
  }
}

Visual Feedback (TODO)

Integrate the linter via dmn-js-dmnlint into dmn-js and get direct feedback during modeling.

To try out visual validation, checkout the dmnlint playground.

Writing / Consuming Custom Rules (TODO)

Use the dmnlint playground to implement new rules with quick visual feedback.

For more details on how to define and consume custom lint rules check out the dmnlint-plugin-example.

Credits

The project is based on bpmnlint built by nikku and siffogh.

License

MIT

Keywords

dmnlint

FAQs

Package last updated on 30 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts