Add rule about defstruct/1
lexmag opened this issue · comments
Aleksei Magusev commented
# Bad
defstruct [year: nil, month: nil, day: nil, calendar: Calendar.ISO]
# Good
defstruct [:year, :month, :day, calendar: Calendar.ISO]
An opinionated Elixir style guide
lexmag opened this issue · comments
# Bad
defstruct [year: nil, month: nil, day: nil, calendar: Calendar.ISO]
# Good
defstruct [:year, :month, :day, calendar: Calendar.ISO]