ghostbuster91 / scalafix-unified

5 stars 2 forks source link

`"a" :: "b" :: Nil` is replaced with `"a" :: "b" :: List.empty` #10

Open guizmaii opened 1 year ago

guizmaii commented 1 year ago

Hey,

Found some issues when using this plugin on Quill codebase 🙂

See https://github.com/zio/zio-quill/pull/2886/files#diff-b07a4f2ade39c5dff3ce113f3a53e7f2260007561da9db2776cfc29bdcd2a2b5R12

Another example here: https://github.com/zio/zio-quill/pull/2886/files#diff-b22425f9382d1401680cd41ce0e796e5376c7c8f6a075372503372084c00f000R183

ghostbuster91 commented 1 year ago

It is actually funny in how many different cases it can still produce broken code :) Thanks for reporting :+1: