Skip to content

linter: Improve diagnostic for no-new-func rule #19118

@connorshea

Description

@connorshea

The rule currently has a rather poor diagnostic message, we should improve it:

OxcDiagnostic::warn("The Function constructor is eval.").with_label(span)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsgood first issueExperience Level - Good for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions