Nerves.System.Defconfig (nerves_system_linter v0.4.1)
Elixir representation of a defconfig. Currently only supports buildroot defconfigs and not Linux Kernel configs.
Summary
Types
The actual config representation.
Name of a config.
Value inside a defconfig.
Path to the file this data represents.
Elixir representation of a defconfig file.
Types
@type config() :: %{optional(config_name()) => package_value()}
The actual config representation.
@type config_name() :: binary()
Name of a config.
Value inside a defconfig.
@type path() :: Path.t()
Path to the file this data represents.
@type 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.
Functions
@spec add_rule(Defconfig.t(), Nerves.System.Linter.Rule.rule()) :: Defconfig.t()
Add a single rule to a defconfig.
@spec add_rules(Defconfig.t(), [Nerves.System.Linter.Rule.rule()]) :: Defconfig.t()
Add a list of rules to a Defconfig.