Ironman.Config (ironman v1.0.0)

View Source

This struct represents the state of the project. It is created at the beginning of a run, passed through all the checks, where it is updated, and then files are written out at the end based on its contents.

Summary

Types

t()

@type t() :: %Ironman.Config{
  changed: MapSet.t(atom()),
  config_dev_exs: String.t() | nil,
  config_exs: String.t(),
  config_prod_exs: String.t() | nil,
  config_test_exs: String.t() | nil,
  coveralls_json: String.t() | nil,
  credo_exs: String.t() | nil,
  dialyzer_ignore: String.t() | nil,
  gitignore: String.t() | nil,
  mix_exs: String.t(),
  skipped_upgrades: MapSet.t(atom()),
  starting_project_config: keyword()
}

Functions

any_changed?(config)

app_name(config)

changed?(config, key)

get(config, key)

new(attrs \\ [])

@spec new(keyword()) :: t()

new!()

set(config, key, value, changed_flag \\ true)

@spec set(t(), atom(), String.t(), boolean()) :: t()