Skip to content

Rule does not check for Identifiers #2

Open
@michaelanthonymain

Description

@michaelanthonymain

In the following case:

var mock = {};
var mock2 = [];

var mockedThing = td.object(mock);
var mockedThing2 = td.object(mock2);

The object-creation rule will not report any warnings. It seems like it should be possible to find the Identifier definition type, to accurately report on the rule.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions