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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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