Skip to content

missing_argument_linter() misses S4 usage #2820

Open
@MichaelChirico

Description

@MichaelChirico

Uncovered by #2191

lint(text = "obj$get(a =)", linters = missing_argument_linter())

The reason is that get is not a <SYMBOL_FUNCTION_CALL> in the AST -- it's a <SLOT>! (TIL)

We might need to consider more broadly which //SYMBOL_FUNCTION_CALL linters also apply when the call is a //SLOT.

We do so in one place so far:

| //OP-AT/following-sibling::SLOT[starts-with(text(), '`')]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions