Runs the credence semantic linter/fixer on the given Elixir source files.
When run without arguments, automatically discovers source files in the
project's standard directories (lib/, src/, test/, web/) and
umbrella sub-apps (apps/*/lib/, etc.), excluding _build/, deps/,
and node_modules/.
You may also pass explicit file paths, directories, or 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
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
mix credence lib/my_app/router.ex
mix credence "lib/**/*.{ex,exs}"
mix credence --check "lib/**/*.ex" "test/**/*.exs"