Invalid rule - Remove this override of "Error"

Hello guys,

We are using https://sonarcloud.io/ resource for analyzing our source code from Azure based on git cv
We are using Angular 9 and Azure pipelines with SonarCloud tasks for preparing a report analyzing data

We are cathing a strange bug in a TypeScript Enum
It’s not overriding a fundamental object.

Hello Yurii,

Thank you for your message. Error happens to be a JavaScript standard built-in object. As a result, the enum constant definitely overrides the said global object. This being so, I would argue that this rule should make an exception for the particular case of enum constants. I created a ticket in that regard.

Yassin

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.