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

Format src/Compiler/Driver #13195

Merged
merged 24 commits into from
May 30, 2022
Merged

Format src/Compiler/Driver #13195

merged 24 commits into from
May 30, 2022

Conversation

dsyme
Copy link
Contributor

@dsyme dsyme commented May 25, 2022

  • Apply formatting to src/Compiler/Driver
  • Adjust fsharp_max_if_then_else_short_width to be larger (40 --> 60) across all code
  • Make a set of pre-formatting changes to make code clearer and avoid horrible code before formatting producing horrible code after formatting

When reviewing this, there effectively two parts

  • The last commit "apply formatting" applies the formatting across the repo
  • The 1..N-1 commits either pre-simplify code or adjust the formatting settings

@dsyme dsyme force-pushed the ft36 branch 2 times, most recently from b22186b to 7d83f71 Compare May 26, 2022 13:01
@dsyme dsyme force-pushed the ft36 branch 2 times, most recently from 2a23431 to 1fe1e37 Compare May 26, 2022 13:16
@dsyme
Copy link
Contributor Author

dsyme commented May 26, 2022

@vzarytovskii This is ready for review.

I've been through every file and there were some quite intrusive formatting changes. Because of this I've made a set of pre-formatting changes to make code better (e.g. avoiding large indentations) and thus give decent code after formatting.

The pre-formatting changes are all except the last "apply formatting" commit, and should really be reviewed separately to the automatic code formatting itself. However there are no controversial changes in the pre-formatting, just cleanup.

@dsyme dsyme changed the title Apply formatting to src/Compiler/Driver Format src/Compiler/Driver May 30, 2022
@dsyme dsyme enabled auto-merge (squash) May 30, 2022 13:12
@dsyme dsyme merged commit 36af364 into dotnet:main May 30, 2022
KevinRansom pushed a commit that referenced this pull request May 31, 2022
* update fantomas (#13206)

* Format most of FSharp.Core (#13150)

* modify fantomasignore

* fix setting

* no single line functions in FSHarp.Core

* update fantomas

* apply formatting

* Format src/Compiler/Driver (#13195)

* adjust settings

* adjust code

* adjust settings

* adjust code

* fix code before formatting

* remove unnecessary yield

* manual pre-formatting

* preadjust code

* preadjust code

* preadjust code

* preadjust code

* adjust settings"

* adjust settings"

* adjust settings

* adjust settings

* fix build

* adjust settings

* adjust code

* adjust code

* adjust code

* update fantomas

* apply formatting

* apply formatting (fix build) (#13209)

* preformat

* apply formatting

Co-authored-by: Don Syme <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants