Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginRoot = "~/.tflint.d/plugins"
PluginRoot is the root directory of the plugins This variable is exposed for testing.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
Plugin is a mechanism for adding third-party rules. Each plugin must be built with `--buildmode=plugin`. @see https://golang.org/pkg/plugin/
Each plugin must have a top-level function named `Name`, `Version` and `NewRules`. The return value of NewRules must be a structure that satisfies the Rule interface.
func Find ¶
Find searches and returns plugins that meet the naming convention. All plugins must be placed under `~/.tflint.d/plugins` and these must be named `tflint-ruleset-*.so`.
func OpenPlugin ¶
OpenPlugin looks up symbol from plugins and intiialize Plugin with functions.
Click to show internal directories.
Click to hide internal directories.