# `mix material_symbols.used`
[🔗](https://github.com/waseigo/material_symbols/blob/v1.0.0/lib/mix/tasks/material_symbols.used.ex#L1)

Scans source files for MaterialSymbols usage and prints a suggested
`config :material_symbols, icons: [...]` allowlist.

    mix material_symbols.used
    mix material_symbols.used --paths lib,test
    mix material_symbols.used lib web

Positional paths are treated as additional paths.

The scan is static. It detects qualified components, aliases in `.ex`/`.exs`
files, `render/1` and `icon/1` literals, function captures, and `apply/3`.
Template files are scanned for fully qualified `MaterialSymbols.` names.
Comments, documentation heredocs, ordinary string literals, and sigils other
than `~H` are ignored. Dynamic names and
`icon_names/0`/`raw_names/0`/`icon_name/1`/`search_icons/1` produce warnings.
The task does not edit configuration.

