Skip to content

Fantomas duplicates commented line at the end of the file #2499

Description

@dbrattli

Issue created from fantomas-online

Code

/// Returns `unit` if validation was successful otherwise will throw an `Exception`.

Result

/// Returns `unit` if validation was successful otherwise will throw an `Exception`.
/// Returns `unit` if validation was successful otherwise will throw an `Exception`.

Problem description

Fantomas seems to be duplicating commented lines if they are at the end of the file.

Extra information

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

Options

Fantomas master branch at 2022-09-10T06:40:11Z - e1bd963

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions