Nerves.System.Linter.Rule.Callbacks (nerves_system_linter v0.4.1)
The language for defining a rule
.
Summary
Types
Argument to a check.
List or arguments.
The name of the check to aply.
Human readable message for a check.
Replace the message for a check.
If a check evaluates false, it should be a warning instead of error.
Functions
Ensures a boolean value.
Ensures a package is enabled.
Ensures a value.
Registers this rule to be evaluated.
Types
@type arg() :: message_arg() | warning_arg()
Argument to a check.
@type args() :: [arg()]
List or arguments.
@type check() :: :ensure_package | :ensure_bool | :ensure_value
The name of the check to aply.
@type message() :: String.t()
Human readable message for a check.
@type message_arg() :: {:message, message()}
Replace the message for a check.
@type warning_arg() :: {:warn, boolean()}
If a check evaluates false, it should be a warning instead of error.
Functions
Ensures a boolean value.
@spec ensure_package(Nerves.System.Defconfig.config_name(), args()) :: Macro.t()
Ensures a package is enabled.
Ensures a value.
Registers this rule to be evaluated.