ocaml.org icon indicating copy to clipboard operation
ocaml.org copied to clipboard

Biome

Open smorimoto opened this issue 1 year ago • 2 comments

This PR introduces Biome to CI. This allows you to perform format and lint checks on several file types. Actually, it found some issues.

https://biomejs.dev

Remember to use hide white space mode to make the review easier.

smorimoto avatar Sep 13 '24 15:09 smorimoto

Thanks @smorimoto. This is interesting; however, I have mixed feelings about it.

I'm a strong supporter of automated checks. However, the proposed changes only include whitespace, line breaks, and optional semicolumns. Did I miss something? Tidying this way is acceptable, but having a tool to do that feels overkill. Do those files change often enough to use an automated tool?

Additionally, if we were to use such a tool, we should be able to run it locally, like we do with ocamlformat. However, if I'm correct, that would add Node.js to our list of development dependencies. Isn't it a lot for that kind of change?

cuihtlauac avatar Sep 16 '24 06:09 cuihtlauac

Biome does not require the Node.js ecosystem: https://biomejs.dev/guides/manual-installation

smorimoto avatar Sep 18 '24 03:09 smorimoto

Without a strong reason to add this, I'd rather not add new steps (aka complexity and latency) to our CI.

tmattio avatar Oct 01 '24 07:10 tmattio

https://repology.org/project/direnv/versions

smorimoto avatar Nov 11 '24 17:11 smorimoto