Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Formatter Updates Deprecated Boolean Operator Syntax #1200

@ScottCarda-MS

Description

@ScottCarda-MS

The formatter should have a rule for updating the Boolean operators to their supported keywords.

  • && should be replaced with and.
  • || should be replaced with or.
  • ! should be replaced with not.

For example:

if f1 && f2 || !f3 {
    // ...
}

should be updated to

if f1 and f2 or not f3 {
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: formatterQ# source code formatterenhancementNew request or suggestion for an improvementhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions