Changelog
View Sourcev0.4.0
Added 4 new checks:
Jump.CredoChecks.AssertReceiveTimeout, which flagsassert_receivecalls that specify an explicit timeout. Supports an optionalmin_assert_receive_timeoutparameter that allows literalassert_receivetimeouts greater than or equal to the configured minimum, and an optionalmax_refute_receive_timeoutparameter that flagsrefute_receivecalls whose timeout exceeds the configured maximum. (PR)Jump.CredoChecks.ConditionalAssertion, which flags assertions that include an "or." Tests should be able to confidently assert which branch will be taken every time. (PR)Jump.CredoChecks.UndeclaredExternalResource, which flags module attributes that read from the file system at compile time (e.g.,File.read!/1) without declaring an@external_resource. Without it, editing the file won't trigger a recompile, leaving stale data baked into the module. (PR)Jump.CredoChecks.SafeBinaryToTerm, which flagsPlug.Crypto.non_executable_binary_to_term/2calls that omit the:safeoption. Decoding attacker-controlled input without:safeinterns arbitrary atoms and can exhaust the atom table, crashing the node. (PR courtesy of first-time contributor @peaceful-james)
Dependency updates:
- Igniter 0.8.0 -> 0.8.1
- Credo 1.7.18 -> 1.7.19
v0.3.0
- New check: Add
Jump.CredoChecks.UnusedLiveViewAssign, compliments of first-time contributor @ftes (PR) - Fix for
Jump.CredoChecks.LiveViewFormCanBeRehydrated: Don't warn about missingphx-changeon forms withphx-auto-recover="ignore"(PR) - Dependency updates:
- Bump ex_doc from 0.40.1 to 0.40.3 (PR 1, PR 2)
- Bump igniter from 0.7.9 to 0.8.0
- Bump quokka from 2.12.1 to 2.13.1
v0.2.0
- Add Igniter task to support installing via
mix igniter.install jump_credo_checks, courtesy of @britton-jb. - Add new
Jump.CredoChecks.PreferChangeOverUpDownMigrationscheck, which detects Ecto migrations that define separateup/downcallbacks but could instead take advantage of Ecto's automatic reversibility by usingchange/0.
v0.1.0
Initial release.