hrzndhrn / recode

A linter with autocorrection and a refactoring tool.
MIT License
295 stars 15 forks source link

Mismatch of ordering between `recode` and `credo` #52

Closed sardaukar closed 1 year ago

sardaukar commented 1 year ago

Given

alias App.Module.AnnotationV2
alias App.Module.AnnotationsBehaviour

credo and recode disagree on the correct order for them. I think credo is correct in saying

alias App.Module.AnnotationsBehaviour
alias App.Module.AnnotationV2

is the right way, since s before V, and it seems like recode values capitals as a sort of separator of sorts and prefers the order in the first snippet?

NickNeck commented 1 year ago

Good catch.