Skip to content
Snippets Groups Projects
Select Git revision
  • e897ecb27a7aeaac9cf90c06e2920516a18cbaee
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
22 results

lint_check.sh

Blame
  • lint_check.sh 570 B
    #!/bin/bash
    
    topdir="`dirname $(dirname $0)`"
    
    flake8 .
    pydocstyle .
    pylint plugins
    
    ANSIBLE_LIBRARY=${ANSIBLE_LIBRARY:-"${topdir}/plugins/modules"}
    ANSIBLE_MODULE_UTILS=${ANSIBLE_MODULE_UTILS:-"${topdir}/plugins/module_utils"}
    
    export ANSIBLE_LIBRARY ANSIBLE_MODULE_UTILS
    
    yaml_dirs=(
        "${topdir}/tests"
        "${topdir}/playbooks"
        "${topdir}/molecule"
    )
    
    for dir in "${yaml_dirs[@]}"
    do
        find "${dir}" -type f -name "*.yml" | xargs ansible-lint --force-color
    done
    
    
    for dir in "${yaml_dirs[@]}"
    do
        find "${dir}" -type f -name "*.yml" | xargs yamllint
    done