Skip to content

New lint: Check quote! macro is always used with curyl braces #7278

@DevinR528

Description

@DevinR528

What it does

What does this lint do?

What it does

Check quote! is always used with curly braces, this could maybe apply to other macros or other bracing combos?

Categories

  • Nursery

This is mostly a consistency lint although using () or [] doesn't give you a semicolon in item position, which can be unexpected.

Drawbacks

None 🤷

Example

quote! ( some tokens )

Could be written as:

quote! { some tokens }

If everyone is ok with this in the nursery I can open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions