fix: add @spec to all public functions across 24 modules (CSM-019)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 11:40:42 +02:00
parent 3f77488e33
commit b6f9cf58e1
24 changed files with 150 additions and 3 deletions

View File

@@ -1,8 +1,10 @@
defmodule BDS.Rendering.FileSystem do
@moduledoc false
@type t :: %__MODULE__{root_paths: [String.t()]}
defstruct [:root_paths]
@spec new([String.t()] | String.t()) :: t()
def new(root_paths) when is_list(root_paths) do
%__MODULE__{root_paths: Enum.uniq(root_paths)}
end
@@ -11,6 +13,7 @@ defmodule BDS.Rendering.FileSystem do
new([root_path])
end
@spec full_path(t(), String.t()) :: String.t()
def full_path(%__MODULE__{root_paths: root_paths}, template_path) do
normalized_path = to_string(template_path)