Currently when a syntax-error is detected by ansible-lint, ansible-content-parser executes ansible-lint again with excluding those files with syntax-errors because ansible-lint stop linting. With ansible-lint PR#4133, it will be changed to continue linting even syntax errors are found. It means that we should be able to get rid of those special logic to exclude files that have syntax errors to simplify ansible-content-parser.
Currently when a syntax-error is detected by ansible-lint, ansible-content-parser executes ansible-lint again with excluding those files with syntax-errors because ansible-lint stop linting. With ansible-lint PR#4133, it will be changed to continue linting even syntax errors are found. It means that we should be able to get rid of those special logic to exclude files that have syntax errors to simplify ansible-content-parser.