Commit 621fd23c authored by kaniini's avatar kaniini

credo: add @moduledoc tags

parent 3be653e5
Pipeline #19424 failed with stage
in 2 minutes and 4 seconds
defmodule FastSanitize.Fragment do
@moduledoc "Processing of HTML fragment trees."
import Plug.HTML, only: [html_escape_to_iodata: 1]
def to_tree(bin) do
......
defmodule FastSanitize.Sanitizer.BasicHTML do
@moduledoc "The default sanitizer policy."
require FastSanitize.Sanitizer.Meta
alias FastSanitize.Sanitizer.Meta
......
defmodule FastSanitize.Sanitizer.Dummy do
@moduledoc "A sanitizer policy which does nothing."
def scrub(x), do: x
end
defmodule FastSanitize.Sanitizer.StripTags do
@moduledoc "A sanitizer policy which strips all tags."
require FastSanitize.Sanitizer.Meta
alias FastSanitize.Sanitizer.Meta
......
defmodule Mix.Tasks.FastSanitize.Bench do
@moduledoc "Benchmarking task."
use Mix.Task
@input_dir "lib/mix/tasks/fast_sanitize/html"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment