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

@@ -13,6 +13,7 @@ defmodule BDS.Rendering.PostRendering do
alias BDS.Posts.Translation
alias BDS.Repo
@spec post_assigns(String.t(), map()) :: map()
def post_assigns(project_id, assigns) do
metadata = RenderMetadata.project_metadata(project_id)
template_context = TemplateSelection.template_render_context(project_id)
@@ -180,6 +181,7 @@ defmodule BDS.Rendering.PostRendering do
end
end
@spec post_data_json_value(map()) :: String.t()
def post_data_json_value(post_context) do
case Jason.encode(%{
id: Map.get(post_context, :id),
@@ -238,6 +240,13 @@ defmodule BDS.Rendering.PostRendering do
}
end
@spec render_post_content(
String.t() | nil,
map(),
map(),
String.t(),
Liquex.Context.t()
) :: String.t()
def render_post_content(
content,
canonical_post_paths,