Skip to content

Commit

Permalink
Add support for json schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Mar 22, 2022
1 parent aa305f7 commit a470fbb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ install_requires =
ansible-compat>=2.0.2 # GPLv3
ansible-core>=2.12.0 # GPLv3
enrich>=1.2.6
jsonschema>=4.4.0
packaging
pyyaml
rich>=9.5.1
Expand Down
5 changes: 4 additions & 1 deletion src/ansiblelint/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ def run(self) -> List[MatchError]:
# -- phase 1 : syntax check in parallel --
def worker(lintable: Lintable) -> List[MatchError]:
# pylint: disable=protected-access
return AnsibleSyntaxCheckRule._get_ansible_syntax_check_matches(lintable)
result = []
result.extend(
AnsibleSyntaxCheckRule._get_ansible_syntax_check_matches(lintable)
)

# playbooks: List[Lintable] = []
for lintable in self.lintables:
Expand Down

0 comments on commit a470fbb

Please sign in to comment.