Skip to content

Instantly share code, notes, and snippets.

@calid
Last active March 13, 2019 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calid/634258c25f9d4aa0c1327eff1c5b16e1 to your computer and use it in GitHub Desktop.
Save calid/634258c25f9d4aa0c1327eff1c5b16e1 to your computer and use it in GitHub Desktop.
apache/groovy shellcheck warnings
In grape_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In grape_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In groovyc_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In groovyc_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In groovy_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In groovy_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In groovyConsole_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In groovyConsole_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In groovydoc_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In groovydoc_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In groovysh_completion line 62:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In groovysh_completion line 65:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/groovyConsole_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/groovyConsole_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/groovy line 29:
GROOVY_APP_NAME=Groovy
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/groovy line 35:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovy line 36:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovy line 40:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovy line 44:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyConsole line 27:
GROOVY_APP_NAME=GroovyConsole
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/groovyConsole line 33:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyConsole line 34:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyConsole line 38:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyConsole line 42:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovy_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/groovy_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/groovysh line 27:
GROOVY_APP_NAME=GroovyShell
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/groovysh line 33:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovysh line 34:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovysh line 38:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovysh line 42:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 28:
PROGNAME=`basename "$0"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 32:
SCRIPT_PATH="$0"
^-- SC2034: SCRIPT_PATH appears unused. Verify it or export it.
In ./src/bin/startGroovy line 66:
case "`uname`" in
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 89:
[ -z "$JAVA_HOME" -a -f "/usr/libexec/java_home" ] && export JAVA_HOME=`/usr/libexec/java_home`
^-- SC2155: Declare and assign separately to avoid masking return values.
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 93:
javaExecutable="`which javac`"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 94:
[ -z "$javaExecutable" -o "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ] && die "JAVA_HOME not set and cannot find javac to deduce location, please set JAVA_HOME."
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 96:
readLink=`which readlink`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 97:
[ `expr "$readLink" : '\([^ ]*\)'` = "no" ] && die "JAVA_HOME not set and readlink not available, please set JAVA_HOME."
^-- SC2046: Quote this to prevent word splitting.
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 98:
javaExecutable="`readlink -f \"$javaExecutable\"`"
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 99:
javaHome="`dirname \"$javaExecutable\"`"
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 100:
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 109:
[ -n "$GROOVY_HOME" ] && GROOVY_HOME=`cygpath --unix "$GROOVY_HOME"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 110:
[ -n "$JAVACMD" ] && JAVACMD=`cygpath --unix "$JAVACMD"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 111:
[ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 112:
[ -n "$CP" ] && CP=`cygpath --path --unix "$CP"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 114:
if [ -n "$GROOVY_HOME" -a "`expr "$GROOVY_HOME":'\/$'`" ] ; then
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
In ./src/bin/startGroovy line 115:
GROOVY_HOME=`echo $GROOVY_HOME | sed -e 's/\/$//'`
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 122:
[ -n "$JAVA_HOME" ] && JAVA_HOME=`( cd "$JAVA_HOME" ; pwd )`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 131:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 132:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 136:
PRG=`dirname "$PRG"`"/$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 139:
SAVED="`pwd`"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 140:
cd "`dirname \"$PRG\"`/.."
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 141:
GROOVY_HOME="`pwd -P`"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 183:
MAX_FD_LIMIT=`ulimit -H -n`
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2039: In POSIX sh, ulimit -H is not supported.
In ./src/bin/startGroovy line 188:
ulimit -n $MAX_FD
^-- SC2039: In POSIX sh, ulimit -n is not supported.
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 201:
. $PROFILER
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 221:
GROOVY_HOME=`cygpath --mixed "$GROOVY_HOME"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 222:
JAVA_HOME=`cygpath --mixed "$JAVA_HOME"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 223:
GROOVY_CONF=`cygpath --mixed "$GROOVY_CONF"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 224:
CP=`cygpath --path --mixed "$CP"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 225:
TOOLS_JAR=`cygpath --mixed "$TOOLS_JAR"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 226:
STARTER_CLASSPATH=`cygpath --path --mixed "$STARTER_CLASSPATH"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 229:
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 243:
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 244:
if [ $CHECK -ne 0 ] ; then
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 245:
patched=`cygpath --path --ignore --mixed "$arg"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 250:
eval `echo args$i`="\"$arg\""
^-- SC2046: Quote this to prevent word splitting.
^-- SC2116: Useless echo? Instead of 'cmd $(echo foo)', just use 'cmd foo'.
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 254:
i=`expr $i + 1`
^-- SC2006: Use $(..) instead of legacy `..`.
^-- SC2003: expr is antiquated. Consider rewriting this using $((..)), ${} or [[ ]].
In ./src/bin/startGroovy line 260:
1) set -- "$args0" ;;
^-- SC2154: args0 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 261:
2) set -- "$args0" "$args1" ;;
^-- SC2154: args1 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 262:
3) set -- "$args0" "$args1" "$args2" ;;
^-- SC2154: args2 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 263:
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
^-- SC2154: args3 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 264:
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
^-- SC2154: args4 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 265:
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
^-- SC2154: args5 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 266:
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
^-- SC2154: args6 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 267:
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
^-- SC2154: args7 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 268:
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
^-- SC2154: args8 is referenced but not assigned (did you mean 'args'?).
In ./src/bin/startGroovy line 271:
set -- "${args[@]}"
^-- SC2039: In POSIX sh, array references are not supported.
In ./src/bin/startGroovy line 276:
JAVA_VERSION=`"$JAVACMD" -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut -d "_" -f1`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/startGroovy line 277:
if [ "$JAVA_VERSION" \> "1.8.0" ]; then
^-- SC2039: In POSIX sh, \> is not supported.
In ./src/bin/startGroovy line 292:
eval exec "\"\$JAVACMD\"" $JAVA_OPTS \
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 299:
$STARTER_MAIN_CLASS \
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/startGroovy line 300:
--main $CLASS \
^-- SC2086: Double quote to prevent globbing and word splitting.
In ./src/bin/groovydoc_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/groovydoc_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/java2groovy line 32:
GROOVY_APP_NAME=Java2Groovy
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/java2groovy line 38:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/java2groovy line 39:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/java2groovy line 43:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/java2groovy line 47:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyc_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/groovyc_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/groovysh_completion line 62:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/groovysh_completion line 65:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/grape_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In ./src/bin/grape_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
^-- SC1036: '(' is invalid here. Did you forget to escape it?
^-- SC1072: Missing '}'. Fix any mentioned problems and try again.
In ./src/bin/groovydoc line 27:
GROOVY_APP_NAME=GroovyDoc
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/groovydoc line 33:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovydoc line 34:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovydoc line 38:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovydoc line 42:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyc line 27:
GROOVY_APP_NAME=GroovyC
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/groovyc line 33:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyc line 34:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyc line 38:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/groovyc line 42:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/grape line 29:
GROOVY_APP_NAME=Grape
^-- SC2034: GROOVY_APP_NAME appears unused. Verify it or export it.
In ./src/bin/grape line 35:
ls=`ls -ld "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/grape line 36:
link=`expr "$ls" : '.*-> \(.*\)$'`
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/grape line 40:
PRG=`dirname "$PRG"`/"$link"
^-- SC2006: Use $(..) instead of legacy `..`.
In ./src/bin/grape line 44:
DIRNAME=`dirname "$PRG"`
^-- SC2006: Use $(..) instead of legacy `..`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment