fix: reworking some code smell issues

This commit is contained in:
2026-06-26 16:34:07 +02:00
parent 68de265137
commit d1acfd4d71
42 changed files with 661 additions and 129 deletions

9
lib/bds/strings.ex Normal file
View File

@@ -0,0 +1,9 @@
defmodule BDS.Strings do
@moduledoc """
Small string-formatting helpers shared across the codebase.
"""
@doc "Zero-pads an integer to at least two digits, e.g. `3 -> \"03\"`."
@spec pad2(integer()) :: String.t()
def pad2(value), do: value |> Integer.to_string() |> String.pad_leading(2, "0")
end