The analyzer detected a suspicious code fragment where a named constant from an enumeration or a variable of type ′enum′ is used as a Boolean value. It is very likely to be a logic error.
The analyzer detected a potential error related to the fact that before the exit from the function, a local variable is assigned with a value that is not used later.
The analyzer has detected a case where a variable is assigned the value already stored in it. Such an assignment is very likely to be a logic error.
A variable declaration must specify the data type and the name of the variable. An optional var keyword may be added to clarify the intention,52 and an initial value can also be assigned as part of the declaration.53 Example of a variable declaration var real Brd = 2.48678E5; Example of ...
It is, therefore, initialized to nil (the Smalltalk undefined value). This declaration does nothing more than tell Smalltalk that from now on, the name x can be used to refer to a variable, to which values can be assigned and whose value can be accessed. Let us reiterate: in contrast ...
This rule finds values that are assigned to variables but never used. Unused values should be removed to increase readability and avoid confusion. Recommendation Remove any unused values. Also remove any variables that only hold unused values. ...
In this case, the assignment is part of ++ and the value of that expression is used, but the assigned value is never read again. For precisely x++, just removing the assignment is actually not trivial because + 1 might have side effects, so print(x) is not the same as print(x++)....
Error: property or indexer cannot be assigned to it is read only error: System.FormatException: 'Input string was not in a correct format Error: The modifier 'readonly' is not valid for this item Error: The name assert does not exist in the current content. Error: The process 'C:\Prog...
V542. Suspicious type cast: 'Type1' to ' Type2'. Consider inspecting the expression. V543. It is suspicious that value 'X' is assigned to the variable 'Y' of HRESULT type. V544. It is suspicious that the value 'X' of HRESULT type is compared with 'Y'. V545. Conditional expressio...
V541. String is printed into itself. Consider inspecting the expression. V542. Suspicious type cast: 'Type1' to ' Type2'. Consider inspecting the expression. V543. It is suspicious that value 'X' is assigned to the variable 'Y' of HRESULT type. V544. It is suspicious that the value...