checkstyle.utils.store#

Module for handling checkstyle binaries

checkstyle.utils.store.download_checkstyle(fetch_dir: str, version: str = 'latest') str[source]#

Download checkstyle binary file

Parameters:
  • fetch_dir – Download location

  • version – Checkstyle runtime version

Returns:

Binary filename

checkstyle.utils.store.is_exist_file(filename: str, fetch_dir: str) bool[source]#

Checking for existence of binary file

Parameters:
  • filename – Checkstyle binary filename

  • fetch_dir – Download location

Returns:

If binary file already exists, return True

checkstyle.utils.store.get_checkstyle_filename(version: str) str[source]#

Return binary filename from version

Parameters:

version – Checkstyle runtime version

Returns:

Checkstyle binary filename

checkstyle.utils.store.get_checkstyle_cache_dir() str[source]#

Return checkstyle cache directory

Returns:

Cache directory