nerves_system_linter v0.4.0 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

Specs

config() :: %{optional(config_name()) => package_value()}

The actual config representation.

Link to this type

config_name()

Specs

config_name() :: binary()

Name of a config.

Link to this type

package_value()

Specs

package_value() :: boolean() | binary() | [binary()]

Value inside a defconfig.

Specs

path() :: Path.t()

Path to the file this data represents.

Specs

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)

Specs

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)

Specs

add_rules(Defconfig.t(), [Nerves.System.Linter.Rule.rule()]) :: Defconfig.t()

Add a list of rules to a Defconfig.