Skip to content

Check class of instance that calls getSlidingPercent() #39

@imhoffd

Description

@imhoffd

Although less likely to cause problems than an instance that calls create(), we could probably do some more syntax checks like we do for ion-action-sheet-method-create-parameters-renamed and ion-alert-method-create-parameters-renamed.

It appears as though we're just checking for any function call by the name of getSlidingPercent():

if (expression.name && expression.name.text === 'getSlidingPercent') {
const replacement = new Lint.Replacement(expression.name.getStart(), expression.name.getWidth(), 'getSlidingRatio');
this.addFailure(this.createFailure(expression.name.getStart(), expression.name.getWidth(), ruleMessage, replacement));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions