Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed pre-commit hooks #612

Merged
merged 1 commit into from
Oct 31, 2019
Merged

Fixed pre-commit hooks #612

merged 1 commit into from
Oct 31, 2019

Commits on Oct 31, 2019

  1. Fixed pre-commit hooks

    Assures that when used as a pre-commit hook, ansible-lint is not
    given each file as argument. This is needed because ansible-lint
    needs to detect the code-base layout in order to figure-out which
    YAML files are playbooks, tasks or vars files.
    
    Previously the hook was passing all files that where matching its
    filters and ansible-lint would assume they were playbooks. This made it
    give false positives.
    
    This change also adds the --force-color because without it ansible-lint
    would fail to detect the TTY and avoid using colors.
    
    Fixes: #611
    Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
    ssbarnea committed Oct 31, 2019
    Configuration menu
    Copy the full SHA
    6cf42cb View commit details
    Browse the repository at this point in the history