15. Layer devtools¶
15.1. Overview¶
The devtools
layer is a set of CLI developer tools.
15.2. Metadata¶
15.2.1. Layer Home¶
/opt/metwork-mfext-0.7/opt/devtools
15.2.2. Label¶
15.2.3. Dependencies¶
15.2.4. Extra-environment (loaded after layer load)¶
SHELLCHECK_OPTS=-e SC2002 -e SC1090 -e SC2129 -e SC2013
15.2.5. Extra interactive profile (loaded after layer load in interactive mode only)¶
GIT_WRAPPER=`which_or_empty git`
if test "${GIT_WRAPPER}" != ""; then
alias git="${MFEXT_HOME}/opt/devtools/bin/_git"
fi
15.2.6. Extra interactive (un)profile (loaded after layer unload in interactive mode only)¶
N=$(alias git |grep -c "${MFEXT_HOME}/opt/devtools")
if test "${N}" -gt 0; then
unalias git
fi
15.3. Utilities¶
15.3.1. shellchecks¶
execute shellcheck on every shell script files found in the current directory
usage: shellchecks
15.3.2. test_globals_in_lua.sh¶
usage: test_globals_in_lua.sh LUA_FILE
=> test if there are some global variables in the given lua file
and exit with an error code if there are some.
=> you can also provide a pattern like *.lua as argument
=> if no global variables are found in lua files, exit with 0 return
code
15.4. Packages¶
Name | Version | Description | Home Page | |
---|---|---|---|---|
ack | 2.16-single-file | ACK is a tool like grep, optimized for programmers | https://beyondgrep.com/ | |
graphviz | 2.40.1 | GRAPHVIZ is open source graph visualization software. It has several main graph layout programs. It also has web and interactive graphical interfaces, and auxiliary tools, libraries, and language bindings. | https://graphviz.org | |
shellcheck | 20170801 | ShellCheck is a bash linter | http://www.shellcheck.net | |
sloccount | 2.26 | A set of tools for counting physical Source Lines of Code (SLOC) | https://www.dwheeler.com/sloccount/ |
(4 packages)