Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply Fourmolu to plutus-tx-plugin package #6691

Open
Unisay opened this issue Nov 19, 2024 · 0 comments
Open

Apply Fourmolu to plutus-tx-plugin package #6691

Unisay opened this issue Nov 19, 2024 · 0 comments

Comments

@Unisay
Copy link
Contributor

Unisay commented Nov 19, 2024

This task is to apply fourmolu configuration specified by the fourmolu.yaml in the project root to the plutus-tx-plugin 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-plugin
$ 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".

@github-actions github-actions bot added the status: needs triage GH issues that requires triage label Nov 19, 2024
@Unisay Unisay added Internal No Changelog Required Add this to skip the Changelog Check and removed status: needs triage GH issues that requires triage labels Nov 19, 2024
@kwxm kwxm added status: triaged and removed No Changelog Required Add this to skip the Changelog Check labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants