foundry-rs / foundry

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
https://getfoundry.sh
Apache License 2.0
8.02k stars 1.64k forks source link

Formatter integration with emacs #7175

Closed clearloop closed 6 months ago

clearloop commented 6 months ago

Component

Forge

Describe the feature you would like

Ethereum has provided an emacs mode https://github.com/ethereum/emacs-solidity which uses solium as the default formatter and it has conflicts with the foundry code structure

the problem leads emacs users to a hard situation ...

foundry seems now only has chapter about the integration with https://book.getfoundry.sh/config/vscode only,

Additional context

No response

onbjerg commented 6 months ago

This should be a 3rd party tool, we do not maintain the VS Code plugin either. Feel free to open a PR to the book with a guide on how to set it up 😊

clearloop commented 6 months ago

in case anybody else need a workaround, for src/.solumrc.json:

{
  - extends: "solium:recommend",
  "rules": {                                                                                                                                                                                                
    "max-len": ["error", 120],
    "__others": "..."
   }
}

This should be a 3rd party tool, we do not maintain the VS Code plugin either. Feel free to open a PR to the book with a guide on how to set it up 😊

and since solium is a dead project now, see no reasons making it an option in forge fmt or developing a foundry plugin for it atm ))