nerves_system_linter v0.2.1 Nerves.System.Defconfig

Elixir representation of a defconfig. Currently only supports buildroot defconfigs and not Linux Kernel configs.

Link to this section Summary

Types

The actual config representation

Name of a config

Value inside a defconfig

Path to the file this data represents

t()

Elixir representation of a defconfig file

Functions

Add a single rule to a defconfig

Add a list of rules to a Defconfig

Link to this section Types

Link to this type config()
config() :: %{optional(config_name) => package_value}

The actual config representation.

Link to this type config_name()
config_name() :: binary

Name of a config.

Link to this type package_value()
package_value() :: boolean | binary | [binary]

Value inside a defconfig.

Link to this type path()
path() :: Path.t

Path to the file this data represents.

Link to this type t()
t() :: %Nerves.System.Defconfig{config: config, errors: [Nerves.System.Linter.Rule.Callbacks.message], path: path, rules: [Nerves.System.Linter.Rule.rule], success: [Nerves.System.Linter.Rule.Callbacks.message], warnings: [Nerves.System.Linter.Rule.Callbacks]}

Elixir representation of a defconfig file.

Link to this section Functions

Link to this function add_rule(config, rule)
add_rule(Defconfig.t, Nerves.System.Linter.Rule.rule) :: Defconfig.t

Add a single rule to a defconfig.

Link to this function add_rules(config, rules)
add_rules(Defconfig.t, [Nerves.System.Linter.Rule.rule]) :: Defconfig.t

Add a list of rules to a Defconfig.