1.0.0 🚀 (2026-12-05)
⚠️ Backwards incompatible changes for 0.1.0
- [
PR-9] Elixir 1.19 or later is required, where 0.1.0 allowed 1.14. The package now follows the support policy of DeployEx and Jellyfish, the last two major Erlang/OTP releases, 28 and 29, and CI runs on both. - [
PR-4] Test files are no longer checked by default. A test attaches a handler with an anonymous function or sends one in a message as a matter of course, and is never hot upgraded. Give a check its ownfiles:in.credo.exsto look at them again. - [
PR-3]ApplicationStartSideEffectsalso reports any call inApplication.start/2whose result is not used, so a project can get new warnings. Name the modules to leave alone with theallowedparameter. - [
PR-4] The text of every message changed, each one now ends with the fix. The triggers and the check names did not change.
Bug fixes
- [
PR-2] A capture through a module is no longer reported as a local function:&__MODULE__.name/arity,&:erlang.name/arityand&module.name/arity. Only a capture through an alias was recognised. - [
PR-4]ClosureInStateno longer reports a function that a call uses while the value is built, as in:persistent_term.put(key, Enum.map(rows, &normalize/1)). It reports a function kept inside a tuple, a list, a map or a struct. - [
PR-4] A function with arescue,catchorafterblock is now looked at. It was skipped byApplicationStartSideEffects,SupervisorInitSideEffects,ProcessDictionaryState,ClosureInState,LocalReceiveLoopandLocalAcceptLoop. - [
PR-6]LiveViewClosureno longer reportsassignon the assigns of a function component or on aconn, which last for one render and one request. - [
PR-6] A capture of a function ofKernel,&length/1, is no longer reported as a local function: it is&:erlang.length/1once compiled. - [
PR-6]NoNifreports a module that loads its NIF withuse Rustleroruse Zig. - [
PR-6]LocalReceiveLoopreports a loop on a timer, which recurses from theafterclause of itsreceive. - [
PR-6]ClosureInStatereports a function in aGenServerstate that is a tuple or a list. - [
PR-5] A module named through__MODULE__, as in__MODULE__.Supervisor.new(attrs)or__MODULE__.Options.t(), no longer crashesClosureInState,CompileTimeEnv,LocalAcceptLoopandCacheWithoutCodeChange. - [
PR-7] The checks run in a project whose.credo.exslists its ownchecks: %{enabled: [...]}, the filemix credo.gen.configwrites. Credo drops there the checks a plugin registers, so the plugin line enabled nothing, with no error. The plugin now adds the checks the project does not name. - [
PR-8]ClosureInStateno longer reports a map that aGenServercallback builds for its own use and does not return. Only the state the callback returns is looked at.
Enhancements
- [
PR-2] New checkCHU0013 LiveViewClosure: a closure kept in a LiveView socket byattach_hook,assign, or thedom_id:of a stream. - [
PR-3] New checkCHU0014 CacheWithoutCodeChange: aGenServerthat fills a:persistent_termor an ETS table and defines nocode_change/3. - [
PR-4] Every message ends with the fix, and the README lists the fix of each check. - [
PR-4]usage-rules.mdships in the package for coding agents: how to run the checks alone with JSON output, the fix for each one, and when a warning may be silenced. - CredoHotUpgrades is now 1.0.0: the check names, their ids and their parameters are stable and will follow semantic versioning going forward.