diff --git a/.formatter.exs b/.formatter.exs index d2cda26..935d310 100644 --- a/.formatter.exs +++ b/.formatter.exs @@ -1,4 +1,5 @@ # Used by "mix format" [ - inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"] + inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], + plugins: [Styler] ] diff --git a/lib/vasov.ex b/lib/vasov.ex index 512df34..3ce3b58 100644 --- a/lib/vasov.ex +++ b/lib/vasov.ex @@ -1,11 +1,13 @@ -defmodule Vasov do - @external_resource "README.md" +external_resource = "README.md" - @moduledoc @external_resource +defmodule Vasov do + @moduledoc external_resource |> File.read!() |> String.split("") |> Enum.fetch!(1) + @external_resource external_resource + @transliteration_table %{ "Р" => "R", "з" => "z", diff --git a/mix.exs b/mix.exs index b5738b6..6870123 100644 --- a/mix.exs +++ b/mix.exs @@ -37,7 +37,8 @@ defmodule Vasov.MixProject do {:credo, "~> 1.7", only: [:dev, :test], runtime: false}, {:mix_audit, "~> 2.0", only: [:dev, :test], runtime: false}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, - {:mix_test_watch, "~> 1.1", only: [:test, :dev], runtime: false} + {:mix_test_watch, "~> 1.1", only: [:test, :dev], runtime: false}, + {:styler, "~> 1.1", only: [:dev, :test], runtime: false} ] end @@ -45,7 +46,7 @@ defmodule Vasov.MixProject do "Transliterates from bulgarian cyrillic to latin." end - defp package() do + defp package do [ name: "vasov", licenses: ["Apache-2.0"], diff --git a/mix.lock b/mix.lock index a22974a..adebd56 100644 --- a/mix.lock +++ b/mix.lock @@ -12,6 +12,7 @@ "mix_test_interactive": {:hex, :mix_test_interactive, "1.2.2", "72f72faa7007d6cb9634ee5f6989b25ee5b194c5729e5e45a962e68b2e217374", [:mix], [{:file_system, "~> 0.2", [hex: :file_system, repo: "hexpm", optional: false]}, {:typed_struct, "~> 0.3.0", [hex: :typed_struct, repo: "hexpm", optional: false]}], "hexpm", "f49f2a70d00aee93418506dde4d95387fe56bdba501ef9d2aa06ea07d4823508"}, "mix_test_watch": {:hex, :mix_test_watch, "1.2.0", "1f9acd9e1104f62f280e30fc2243ae5e6d8ddc2f7f4dc9bceb454b9a41c82b42", [:mix], [{:file_system, "~> 0.2 or ~> 1.0", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm", "278dc955c20b3fb9a3168b5c2493c2e5cffad133548d307e0a50c7f2cfbf34f6"}, "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, + "styler": {:hex, :styler, "1.1.2", "d5b14cd4f8f7cc45624d9485cd0edb277ec92583b118409cfcbcb7c78efa5f4b", [:mix], [], "hexpm", "b46edab1f129d0c839d426755e172cf92118e5fac877456d074156b335f1f80b"}, "typed_struct": {:hex, :typed_struct, "0.3.0", "939789e3c1dca39d7170c87f729127469d1315dcf99fee8e152bb774b17e7ff7", [:mix], [], "hexpm", "c50bd5c3a61fe4e198a8504f939be3d3c85903b382bde4865579bc23111d1b6d"}, "yamerl": {:hex, :yamerl, "0.10.0", "4ff81fee2f1f6a46f1700c0d880b24d193ddb74bd14ef42cb0bcf46e81ef2f8e", [:rebar3], [], "hexpm", "346adb2963f1051dc837a2364e4acf6eb7d80097c0f53cbdc3046ec8ec4b4e6e"}, "yaml_elixir": {:hex, :yaml_elixir, "2.11.0", "9e9ccd134e861c66b84825a3542a1c22ba33f338d82c07282f4f1f52d847bd50", [:mix], [{:yamerl, "~> 0.10", [hex: :yamerl, repo: "hexpm", optional: false]}], "hexpm", "53cc28357ee7eb952344995787f4bb8cc3cecbf189652236e9b163e8ce1bc242"},