npm.io
1.0.0 • Published 2 years agoCLI

dochub-lint

Licence
ISC
Version
1.0.0
Deps
16
Size
2.9 MB
Vulns
31
Weekly
0

DocHub-linter

Linter for DocHub

Installation

Via npm

$ npm install -g dochub-lint

How does it work?

  1. Run command in current DocHub architecture project: dochub-lint
  2. In case lint file hasn't been found, then linter will create one with the following structure:
   {
   "entries": {
   "manifest": "some/path/root.yaml",
   "meta": "some/meta_path/root.yaml",
   "doc": "some/doc_path/root.yaml"
   },
   "rules": {
   "dochub": 2
     }
   }
  1. edit the file by specifying manifest, meta and doc root yaml files. All optional, except manifest.
  2. Then specify rules according to your needs. Rule has the following levels: 0 - ignore, 1 - warning, 2 - error.
  3. In case errors have been found, then linter will terminate with code 1, otherwise (if all is right, or only warnings are present) with code 0

Keywords