Skip to content

NamedArguments with java code false positive #3289

@BraisGabin

Description

@BraisGabin

Expected Behavior

This code should not raise any NamedArguments issue:

import org.joda.time.DateTime

DateTime(2020, 3, 13, 14, 0, 0)

Observed Behavior

It does

Context

If you use a java function in kotlin you can't use NamedArguments so there is no way to fix this.

Your Environment

  • Version of detekt used: 1.15.0-RC1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions