Skip to content

Formatting Questions #256

@Jaime-Iglesias

Description

@Jaime-Iglesias

I've been playing a little bit with this plugin and I have some questions/concerns:

I'm trying to format a test file that looks like this:

    function _foo (uint256 _param1, uint256 param2) external pure returns (uint256 something, uint256 watever) {
    ...
    }

Now, after formatting, I was expecting to get functions that follow//ressemble the Solditiy Style Guide

i.e something like this:

function _foo(
   uint256 _param1,
   uint256 param2,
) external pure returns (
   uint256 something,
   uint256 watever
) {
   ...
}

But to my surprise I got:

	function _foo(uint256 _param1, uint256 param2)
		external
		pure
		returns (uint256 something, uint256 watever)
	{
                ...
	}

do options exists to format code in such a way? Or is the plugin "opinionated" this way thus requiring a complete re-write on the formatting functions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions