MetaCredo. Check. Warning. DirectStructUpdate
(MetaCredo v0.1.0)
View Source
Detects direct struct field updates (e.g. %User{user | name: "new"})
that bypass validation. In Ecto-backed applications, data changes should
go through changesets to ensure validation, casting, and constraint
checking.
Use Ecto.Changeset.change/2 or a dedicated changeset function instead.
Category: Warning / Priority: normal