|1||Yours Truly||all||false positive||Double percent sign in FOR loops generate false "Unterminated percent signs" warning||FOR %%A IN (a b c) DO ECHO %%A|
|2||Denis St-Pierre||0.27||missed issue||Test for undefined variables misses the second variable in this line||echo !_PARAMBOTH! >> "!_CMDLOG!"
REM SHOULD FLAG !_CMDLOG! is not defined e.g. Set _CMDLOG= not found anywhere in the script
|0.30.4||Two issues here: [A] the list of defined variables was populated by looking for
|3||Denis St-Pierre||all||false positive||Opening doublequote followed by space generates false "Unterminated doublequotes" warning||call :SubLog " Echo Please install MSdotNetExtended_v40r1 or equivalent. Exiting..."
REM FALSE_POSITIVE Unterminated doublequotes. But they are terminated
call :SubLog "Echo Please install MSdotNetExtended_v40r1 or equivalent. Exiting..."
REM BatCodeCheck is OK with it if you change " Echo to "Echo
|4||Denis St-Pierre||all||false positive||Single exclamation mark, whether escaped or not, generates false "Unterminated exclamation marks" warning||msiexec.exe /i !_MSICODE.1! REMOVE=OutlookExt /l*v "!_PKGNAME!_RemoveIBIntegrate.LOG" /qb!-
REM FALSE_POSITIVE Unterminated exclamation marks. The ! in /qb!- is a valid parameter for MSIEXEC
msiexec.exe /i !_MSICODE.1! REMOVE=OutlookExt /l*v "!_PKGNAME!_RemoveIBIntegrate.LOG" /qb^^!-
REM FALSE_POSITIVE Unterminated exclamation marks. Don't know if/qb^^!- will be accepted by MSIEXEC or not.
|0.30.3||Where most special characters require a single caret to be escaped, exclamation marks require a double caret; an extra test was required to prevent this false positive|
|5||Denis St-Pierre||0.30.2||false positive||GOTO in code block returns false "label not found" warning if closing parenthesis immediately follows label name||if defined # (set #=%#:~1%&set /A length += 1&goto stringLengthLoop)||0.30.3||Though this issue is solved, one-liners will always remain a pain in the ... and should be avoided; use (indented) code blocks instead:
You may also want to try BatCodeCheck's optional command line switch
||1>&2 ECHO This text is sent to Standard Error||0.32.1|
|7||Yours Truly||all||feature request||Group repeated messages|
Latest BatCodeCheck version: 0.32.1 beta (2014-11-22)
|page last uploaded: 2017-07-06, 12:36|