IntersectMBO / plutus

The Plutus language implementation and tools
Apache License 2.0
1.57k stars 479 forks source link

Apply Fourmolu to `plutus-tx-test-util` package #6692

Open Unisay opened 1 week ago

Unisay commented 1 week ago

This task is to apply fourmolu configuration specified by the fourmolu.yaml in the project root to the plutus-tx-test-util subfolder.

It is ok to skip modules initially by adding the FOURMOLU_DISABLE annotation and re-format them later in the opportunistic manner. Please check the official doc on how to use "magic comments".

You can follow these steps:

$ cd plutus-tx-test-util
$ find src -name "*.hs" -exec fourmolu -i {} \; # reformats all *.hs under the `src` folder with fourmolu
$ find src -name "*.hs" -exec stylish-haskell -i {} \; # applies `stylish-haskell` on top of the fourmolu

Then scrutinize the diff manually disabling fourmolu formatting where appropriate using the "magic comments".