Skip to content

Add @CheckResult/@CheckReturnValue to assertThat #394

Open
@yogurtearl

Description

@yogurtearl

Add @CheckResult/@CheckReturnValue to assertThat so that Detekt can makes sure that you do something with the result of the assertThat methods.

See https://detekt.github.io/detekt/potential-bugs.html#ignoredreturnvalue

You could use an existing annotation from another dependency, or even just assertk.annotation.CheckReturnValue would be good enough to use with the detekt rule.

Related:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions