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
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.eqeq-is-bad
$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