defmodule ExTodo.Config do @moduledoc """ This module defines a struct which houses all the configuration data for ex_todo. """ @config_file ".todo.exs" alias __MODULE__ defstruct supported_codetags: ~w(NOTE TODO FIXME HACK BUG), error_codetags: ~w(FIXME BUG), skip_patterns: [~r/\.git/, ~r/_build/, ~r/deps/, ~r/cover/, ~r/docs/, ~r/\.todo\.exs/] @doc """ Get the configuration defaults as a Config struct """ def config_defaults_as_map, do: %Config{} @doc """ Get the configuration defaults as a string """ def config_defaults_as_string do config = quote do: unquote(%Config{}) config |> Macro.to_string() |> Code.format_string!() end @doc """ Get the configuration file name """ def config_file, do: @config_file end