You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
db.Schema.Users.Query
.Where(fun x -> x.Role)
.Matches(function Role.User companyId -> companyId |_->__)
.In(
db.Schema.Companies.Query
.Where(fun x -> x.LicenceId).Equals(licenceId)
.Select(fun x -> x.Id))
Result
db
.Schema
.Users
.Query
.Where(fun x -> x.Role)
.Matches(function| Role.User companyId -> companyId
|_->__)
.In(db
.Schema
.Companies
.Query
.Where(fun x -> x.LicenceId)
.Equals(licenceId)
.Select(fun x -> x.Id))
Problem description
Nested fluent APIs (a fluent API passed as argument to another fluent API) seem to produce wrong code. In the sample above the second .Schema (and the lines below) need to be indented further than db. The error repeats after manual fixing and it also breaks the cli tool.
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.
Issue created from fantomas-online
Code
Result
Problem description
Nested fluent APIs (a fluent API passed as argument to another fluent API) seem to produce wrong code. In the sample above the second
.Schema
(and the lines below) need to be indented further thandb
. The error repeats after manual fixing and it also breaks the cli tool.Extra information
Options
Fantomas Master at 07/01/2021 18:56:12 - 3a12872
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?
The text was updated successfully, but these errors were encountered: