Skip to main content

A command-line utility that checks for best practices in SaltStack.

Project description

salt-lint

Latest release version PyPI - Python Version PyPI - License GitHub Workflow Status GitHub contributors
salt-lint checks Salt State files (SLS) for best practices and behavior that could potentially be improved.
Explore the docs »
Check the Linting Rules · Report Bug · Request Feature

Demo

salt-lint demo

Acknowledgement

The project is heavily based on ansible-lint, with the modified work by Warpnet B.V.. ansible-lint was created by Will Thames and is now maintained as part of the Ansible by Red Hat project.

Changelog

All notable changes in salt-lint are documented below.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

0.8.0 (2021-11-09)

Fixed

  • False positive when detecting missing spaces in Jinja variables when the Jinja statement is nested in literal braces (#272).
  • Ensure a single missing quote in the file mode is also detected as incorrect quotation of a file mode (#273).
  • Ignore non file mode arguments for the file mode quotation and leading zero checks (#274).

0.7.0 (2021-11-01)

Added

  • Add Python 3.10 support (#265).
  • Add initial man page (#270).

Fixed

  • Close temporary file after writing to STDIN (#263).

0.6.1 (2021-06-01)

Removed

  • Remove rule 218 because of a false positive

0.6.0 (2021-06-01)

Deprecated

  • Drop Python 2.7 support (#239).

Added

  • Rule 216, 217 and 218 for catching common typographical errors (#249).

0.5.2 (2021-01-29)

Fixed

  • Append the contents of the CHANGELOG.md file to the long description of the package instead of the duplicate README.md contents (#234).
  • Ignore Jinja specific rules in Jinja escaped blocks (#236).

0.5.1 (2021-01-19)

Fixed

  • Ensure all excluded paths from both the CLI and configuration are passed to the runner (#231).

0.5.0 (2021-01-17)

Added

  • Rule 213 to recommend using cmd.run together with onchanges (#207).
  • Rule 214 to check SLS file with a period in the name (besides the suffix period) as they can not be referenced by Salt (#209).
  • Rules 901-915 to check for deprecated states and state options (#214).
  • This CHANGELOG.md file to be able to list all notable changes for each version of salt-lint (#223).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salt-lint-0.8.0.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

salt_lint-0.8.0-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file salt-lint-0.8.0.tar.gz.

File metadata

  • Download URL: salt-lint-0.8.0.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for salt-lint-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c0b214dcf021bd72f19f47ee6752cfef11f9cce9b5c4df0711f9066cc4e934a1
MD5 deac36c38b88f990c94301fd09267331
BLAKE2b-256 e83c71fad4e9fde031938462e1b79ad7675b62970fe16913df60eb5e70f2807d

See more details on using hashes here.

File details

Details for the file salt_lint-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: salt_lint-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for salt_lint-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30e59c9ac62ea08f1c5fbf7943df4eca9d30992e5735c4e0459d05fd18a1b1a7
MD5 d1ac0b0d19d11a2d21709760d025da7b
BLAKE2b-256 023678611a9ba4c5ca2d3bf2db3dad4e2b544c7c6f8c5d906bbb3d1edc836457

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page