Repository navigation
- Added
Jump.CredoChecks.AvoidModifyingStructBeforeChangeset, which flags structs that are modified (via%{struct | field: value},Map.put/3,struct/2, a local helper function, etc.) before being passed into a changeset function. Values set this way aren't tracked as changes, so they bypass all changeset validation, and an update silently won't save them. (#43, #45, #46) - Two big improvements to
Jump.CredoChecks.UseObanProWorker:- Flag
process/1callbacks that expect string keys in the job args when the worker declares anargs_schema. (Theargs_schemaensures the worker will only ever be called with atom keys in the args.) - Add
supported_worker_modules(default:[Oban.Pro.Worker]) so project-specific wrappers can be treated as equivalent touse Oban.Pro.Worker. (#35)
- Flag
Jump.CredoChecks.UndeclaredExternalResourceno longer treats an aliased module bound to the nameFile(alias MyApp.Files.File) as Elixir'sFile, soFile.t()in a@specno longer reports a missing@external_resource(#38, courtesy of new contributor @ck-work00).- Fixed a bug in
Jump.CredoChecks.VacuousTestaroundas:aliases (#42, courtesy of first-time contributor @mrezentes) - Improvements to
Jump.CredoChecks.AssertReceiveTimeout:- It now resolves a timeout held in a module attribute (
@timeout 5_000) when the attribute is assigned once with an integer literal, instead of flagging it as unverifiable (#37, courtesy of new contributor @ck-work00). - Its
max_refute_receive_timeoutnow also flags PhoenixTestrefute_hascalls that pass an explicit:timeoutlonger than the configured maximum. (#41)
- It now resolves a timeout held in a module attribute (
- Miscellaneous chores and deps updates
- Bump ex_doc from 0.40.3 to 0.40.4 by @dependabot[bot] in #34
- Bump igniter from 0.8.3 to 0.8.4 by @dependabot[bot] in #36
- test (Igniter): Ensure Igniter install task is always up to date by @s3cur3 in #44
Full Changelog: v0.5.0...v0.6.0