Skip to content

Commit d1f1671

Browse files
committed
Added cfengine lint to cfengine dev lint-docs
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 10d9042 commit d1f1671

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/cfengine_cli/docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from cfbs.pretty import pretty_file
1717
from cfbs.utils import find
1818

19-
from cfengine_cli.lint import lint_policy_file
19+
from cfengine_cli.lint import lint_folder, lint_policy_file
2020
from cfengine_cli.utils import UserError
2121

2222
IGNORED_DIRS = [".git"]
@@ -409,6 +409,9 @@ def check_docs() -> int:
409409
410410
Run by the command:
411411
cfengine dev lint-docs"""
412+
r = lint_folder(".")
413+
if r != 0:
414+
return r
412415
_process_markdown_code_blocks(
413416
path=".",
414417
languages=["json", "cf3"],

0 commit comments

Comments
 (0)