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

Named argument should have a space #1877

Closed
3 tasks
nojaf opened this issue Sep 6, 2021 · 1 comment · Fixed by #2038
Closed
3 tasks

Named argument should have a space #1877

nojaf opened this issue Sep 6, 2021 · 1 comment · Fixed by #2038

Comments

@nojaf
Copy link
Contributor

nojaf commented Sep 6, 2021

Issue created from fantomas-online

Code

let makeStreamReader x = new System.IO.StreamReader(path=x)

Result

let makeStreamReader x = new System.IO.StreamReader(path = x)

Problem description

The style guide advises to not have spaces here.

Named arguments should also not have space surrounding the =:

Extra information

  • The formatted result breaks by code.
  • The formatted result gives compiler warnings.
  • I or my company would be willing to help fix this.

Options

Fantomas Master at 08/19/2021 16:27:53 - a80f888

Default Fantomas configuration

Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?

@dsyme
Copy link
Contributor

dsyme commented Sep 7, 2021

Thanks!

@nojaf nojaf changed the title Named argument should not have a space Named argument should have a space Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants