Remove byte order mark (BOM)

Apache 2.0

Removes UTF-8 byte order marks from the beginning of files.

The BOM character (U+FEFF) is generally unnecessary in UTF-8 files and can cause issues with some tools.

org.openrewrite.text.RemoveByteOrderMark
mod run . --recipe=org.openrewrite.text.RemoveByteOrderMark

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.