SonarSource / SonarTS

Static code analyzer for TypeScript
GNU Lesser General Public License v3.0
761 stars 53 forks source link

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

Open janv8000 opened 4 years ago

janv8000 commented 4 years ago

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