Closed traut closed 2 months ago
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
Add lint subcommand to fabric.
lint
fabric
Usage:
fabric lint [<SOURCES-DIR-PATH>]
<SOURCES-DIR-PATH> -- (optional) positional argument, a path to the sources directory. . by default
<SOURCES-DIR-PATH>
.
The lint command parses the templates and verifies the structure without requiring the plugins to be installed and without execution of the blocks.
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 tofabric
.Usage:
<SOURCES-DIR-PATH>
-- (optional) positional argument, a path to the sources directory..
by defaultThe
lint
command parses the templates and verifies the structure without requiring the plugins to be installed and without execution of the blocks.