blackstork-io / fabric

An open-source command-line tool for reporting workflow automation and a configuration language for reusable templates. Reporting-as-Code
https://blackstork.io/fabric/
Apache License 2.0
12 stars 0 forks source link

Add `lint` subcommand #115

Closed traut closed 2 months ago

traut commented 3 months ago

Background

The repos like https://github.com/blackstork-io/fabric-templates/ exist for collaborative development of the Fabric templates. There is a need to have an automated syntax checking for the templates

Design

Add lint subcommand to fabric.

Usage:

fabric lint [<SOURCES-DIR-PATH>]

<SOURCES-DIR-PATH> -- (optional) positional argument, a path to the sources directory. . by default

The lint command parses the templates and verifies the structure without requiring the plugins to be installed and without execution of the blocks.