Skip to content

How to deny call expressions? #67

@leonklingele

Description

@leonklingele

We want to prevent calls to slog.String("err.* and slog.Any("err.* (and instead suggest to use outinternallog.ErrAttr(err)) , this however doesn't currently seem to be supported by forbidigo as it only handles *ast.SelectorExpr and *ast.Ident nodes, not *ast.CallExpr.

Is this outside the scope of this (very useful!) linter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions