Little Timmy will try their best to find those unused Ansible variables.
Project description
little-timmy
Little Timmy will try their best to find those unused Ansible variables.
cd repo/ansible/plays
ansible-galaxy collection install -f -r requirements.yml -p .
ansible-galaxy role install -f -r requirements.yml -p galaxy_roles
pip3 install little-timmy
little-timmy
# or
python3 -m little_timmy
Config
Additional, optional configuration can be specified in a YAML configuration file named .little-timmy
.
The file can be located at any level between the current working directory and /
.
skip_vars:
- vars
- to
- ignore
skip_dirs:
- venv
- tests
- molecule
Help
little-timmy -h
usage: little-timmy [-h] [-c CONFIG_FILE] [-d | --dave-mode | --no-dave-mode] [-e | --exit-success | --no-exit-success] [-j | --json-output | --no-json-output] [-l LOG_LEVEL] [directory]
Process a directory path
positional arguments:
directory The directory to process
options:
-h, --help show this help message and exit
-c CONFIG_FILE, --config-file CONFIG_FILE
Config file to use. By default it will search all dirs to `/` for .little-timmy
-d, --dave-mode, --no-dave-mode
Make logging work on dave's macbook
-e, --exit-success, --no-exit-success
Exit 0 when unused vars are found.
-j, --json-output, --no-json-output
Output results as json to stdout. Disables the stderr logger.
-l LOG_LEVEL, --log-level LOG_LEVEL
set the logging level (default: INFO)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
little_timmy-1.0.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for little_timmy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31dfd065ff54fe40bb55b3e87190624f8be4db29955c0120a3299982aa74740b |
|
MD5 | 310dbb15dbff8bab9ffac2b8b8f15521 |
|
BLAKE2b-256 | 1f68cae993fec750c01db828af0469fd728ba41dc7a8d61046542ff1b51ead95 |