Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Rule: Variables and functions should not be redeclared #16 false positive #899

@janv8000

Description

@janv8000

I want to report a bug.

SonarTS version: SonarCloud

Rule key: typescript:S2814

Reproducer

declare namespace Company.Product.WebApi.Features.Resource.GetResource.GetResource {
    interface Request {
        type: ResourceType;
    }
    interface Response {
        result: number;
    }
}

Rule message: 'GetResource' is already defined.

Expected behavior

Should not warn.

These files get generated by TypeLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions