Skip to content

XML docs for commented code automatically removed #2186

@sergey-tihon

Description

@sergey-tihon

Issue created from fantomas-online

Code

/// <summary>
/// Some comment
/// </summary>
// type TestUnion = First | Second of int | Third of string

Result

// type TestUnion = First | Second of int | Third of string

Problem description

Ideally Fantomas should not remove comments during formatting

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 branch at 2022-04-01T14:31:49Z - b6828ff

    { config with
                SpaceBeforeLowercaseInvocation = false }

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions