Re-enable Credo ModuleDoc check

Closes #108
This commit is contained in:
Claudio Ortolina
2026-03-13 10:52:01 +00:00
parent 4db9213129
commit 9e1dbfd530
48 changed files with 175 additions and 4 deletions
+4
View File
@@ -1,4 +1,8 @@
defmodule MusicLibrary.Assets.Cache do
@moduledoc """
ETS-based asset cache with TTL for serving frequently accessed images.
"""
@spec new() :: :ets.table()
def new do
:ets.new(__MODULE__, [:named_table, :public, :compressed, read_concurrency: true])
+4
View File
@@ -1,4 +1,8 @@
defmodule MusicLibrary.Assets.Image do
@moduledoc """
Image processing via Vix (libvips) for covers and artist images.
"""
alias Vix.Vips.{Image, Operation}
fallback_path = Application.app_dir(:music_library, ["priv", "image-not-found.jpg"])
+4
View File
@@ -1,4 +1,8 @@
defmodule MusicLibrary.Assets.Transform do
@moduledoc """
Represents an image transformation (hash + target width) for asset serving.
"""
@derive JSON.Encoder
defstruct [:hash, :width]