Skip to content

Improve assertk assertion in kotlin.assert quick fix #79

Description

@jzbrooks

The initial quick fix was a naive replacement assert parameter expression by a assertThat(<expr>).isTrue() call. Ideally that expression would be expanded to a better assertion if possible, falling back to the less-than-ideal isTrue assertion if necessary. In some situations a follow-up quick fix application will fix subpar assertions, but it would be better to get that right with one fix application. A mechanism to expand binary and unary assertions into assertk assertions could be broadly useful across detectors.

Split from #78

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