Skip to content
This repository has been 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

Open
janv8000 opened this issue Feb 21, 2020 · 0 comments
Open

Comments

@janv8000
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant