Runs the credence semantic linter/fixer on the given Elixir source files.
Accepts explicit file paths, directories, and glob patterns. Directories
are recursively searched for .ex and .exs files. Glob patterns are
expanded by the task itself, so quoted patterns work correctly across all
shells.
Usage
mix credence ./lib
mix credence file1.ex file2.ex lib/my_module.ex
mix credence "lib/**/*.ex"
mix credence "lib/**/*.ex" "test/**/*.exs"Each matched file is read, passed through Credence.fix/2, and written
back with the fixed source. Any remaining issues that could not be
auto-fixed are printed to stderr.
Options
--check- Report issues without modifying files (exit 1 if issues found)-v/--verbose- Show debug-level log output from the fix pipeline
Examples
mix credence lib/my_app/router.ex
mix credence "lib/**/*.{ex,exs}"
mix credence --check "lib/**/*.ex" "test/**/*.exs"