Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>salt-lintNew to Visual Studio Code? Get it now.

salt-lint

warpnet

|
9,749 installs
| (4) | Free
salt-lint checks Salt State files (SLS) for practices and behavior that could potentially be improved.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-salt-lint

Current Version Install Count

Requirements

  1. Ensure salt-lint is installed (v0.1.0 or newer).
  2. Run Install Extension command from Command Palette.
  3. Search and choose salt-lint.

Options

There are various options that can be configured by making changes to your user or workspace preferences.

Default options are:

{
    "salt-lint.enable": true,
    "salt-lint.run": "onType",
    "salt-lint.executablePath": "salt-lint"
}

Lint onType or onSave

By default the linter will lint as you type. Alternatively, set salt-lint.run to onSave if you want to lint only when the file is saved (works best if auto-save is on).

{
    "salt-lint.run": "onType" // also: "onSave"
}

Acknowledgements

This extension is based on timonwong's ShellCheck Linter.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft