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.

Unreleased

0.6.1 (2021-06-01)

  • 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.6.1.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

salt_lint-0.6.1-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: salt-lint-0.6.1.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for salt-lint-0.6.1.tar.gz
Algorithm Hash digest
SHA256 48898856b1431895ca54af4c871f5befe5bc7bde89303cce306821ea51e378dc
MD5 d6d876a54baf109170e61a28c32891f6
BLAKE2b-256 56dacb958e4e7f41be0b2c19ffbd2bc8c014315afcd58f2ed1cb297647fbba17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: salt_lint-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for salt_lint-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 25482c7c8baac5ee2b22bed1750b1b521e39c3260064676d4630600777939c09
MD5 804117d0eeb0c276d51f2d2f270d1b24
BLAKE2b-256 83d854c560a01208d87214f80b21012f62207ce61798d89a6e26f80f053899dc

See more details on using hashes here.

Supported by

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