A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SonarSource/sonar-dotnet/issues/7713 below:

consider simple assignments with variable not on the innermost add expression · Issue #7713 · SonarSource/sonar-dotnet · GitHub

Update S1643 to cover simple assignments where the variable is not placed in the innermost add expression. Currently, S1643 only covers cases where the variable is placed at the left side of the innermost add expression:

var s = "";

while (true)
{
    s = s + "a";                     // Noncompliant
    s = s + "a" + "b";           // Noncompliant
    s = s + "a" + "b" + "c";  // Noncompliant 

    s = "a" + "b" + "c" + s;   // FN
    s = "a" + "b" + s;            // FN
    s = "a" + s;                     // FN
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4