Skip to content

Add a lint option to warn about while (true) { ... } #1962

@catamorphism

Description

@catamorphism

Now that we have loop{ ... }, maybe there should be a warning or lint flag to suggest changing while(true) {...} to loop{...}. (This will be helpful to the user as they may be able to remove spurious fails or unreachable calls.)

Since lint seems to just be concerned with ctypes right now, I'm not adding it yet since I'm not sure what the intent behind the current lint module is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions