This is a MegaLinter plugin for Arista Networks' j2lint)
MegaLinter by OxSecurity is a linter tool that supports various programming languages and file formats. This repository contains a MegaLinter plugin for j2lint by Arista Networks.
The j2lint
tool is a linter for Jinja2 templates -- a templating language
used in many configuration management tools, such as Ansible and SaltStack.
It checks for common errors and best practices.
To use this plugin, you need to have MegaLinter installed. Please refer to the MegaLinter documentation for installation instructions.
To use this plugin, add the following to your MegaLinter configuration:
PLUGINS:
- "https://raw.githubusercontent.com/wesley-dean/mega-linter-plugin-j2lint/refs/heads/main/mega-linter-plugin-j2lint/j2lint.megalinter-descriptor.yml
Simply adding the plugin to the PLUGINS
section will cause MegaLiner to read
the descriptor and make it available for use. However, depending on your
MegaLinter configuration, you may need to enable the linter in the ENABLE_LINTERS
section as well. For example:
ENABLE_LINTERS:
- "PYTHON_J2LINT"