ansible / ansible-content-parser

Apache License 2.0
3 stars 4 forks source link

Files with lint violations are not properly excluded #23

Closed TamiTakamiya closed 11 months ago

TamiTakamiya commented 1 year ago

Ansible files with lint violations were supposed to be excluded from the following Sage pipeline, but they were not excluded unless there were syntax check errors at the first execution of ansible-lint.

With fixing the issue, I have added following changes:

- Added a warning message when there was no training dataset found in the source
if len(record_lines) == 0:
    _logger.warning("No training data set was created.")


- Upgrade ansible-lint to 6.20.3