SonarSource / SonarTS

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

S4144: different function body marked as duplicate #884

Open simlevesque opened 4 years ago

simlevesque commented 4 years ago

I want to report a bug.

SonarTS version: sonarsource.sonarlint-vscode 1.11.0
Node.js version: 10.15.3
TypeScript version: 3.6.4
SonarLint version and used IDE: sonarsource.sonarlint-vscode 1.11.0
TSLint version: 5.20.0

Rule key: S4144

Reproducer Could not reproduce it in a simple example.

Logs Example

Expected behavior

Both function bodies are different. The serialized object has different keys that the functions interprets differently.

simlevesque commented 4 years ago

I think this is the cause: https://github.com/SonarSource/SonarTS/issues/599

it's ignoring the numbers.

vilchik-elena commented 4 years ago

Yep, you are right