Correctness
exported_loop_pointer
exported_loop_pointer
$VALUE
is a loop pointer that may be exported from the loop. This pointer is shared between loop iterations, so the exported reference will always point to the last loop value, which is likely unintentional. To fix, copy the pointer to a new pointer within the loop.
use-filepath-join
use-filepath-join
path.Join(...)
always joins using a forward slash. This may cause issues on Windows or other systems using a different delimiter. Use filepath.Join(...)
instead which uses OS-specific path separators.
Likelihood: LOW
Confidence: LOW
eqeq-is-bad
eqeq-is-bad
Detected useless comparison operation $X == $X
or $X != $X
. This will always return ‘True’ or ‘False’ and therefore is not necessary. Instead, remove this comparison operation or use another comparison expression that is not deterministic.
hardcoded-eq-true-or-false
hardcoded-eq-true-or-false
Detected useless if statement. ‘if (True)’ and ‘if (False)’ always result in the same behavior, and therefore is not necessary in the code. Remove the ‘if (False)’ expression completely or just the ‘if (True)’ comparison depending on which expression is in the code.