.. GENERATED FILE, DO NOT EDIT (edit layer_devtools.md instead) .. _layer_devtools: Layer devtools ============== Overview -------- Metadata -------- Layer Home ^^^^^^^^^^ /opt/metwork-mfext-0.4/opt/devtools Label ^^^^^ devtools@mfext Dependencies ^^^^^^^^^^^^ * core@mfext Extra-environnement (loaded after layer load) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none SHELLCHECK_OPTS=-e SC2002 -e SC1090 -e SC2129 -e SC2013 Extra interactive profile (loaded after layer load in interactive mode only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none GIT_WRAPPER=`which_or_empty git` if test "${GIT_WRAPPER}" != ""; then alias git="${MFEXT_HOME}/opt/devtools/bin/_git" fi Extra interactive (un)profile (loaded after layer unload in interactive mode only) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none N=$(alias git |grep -c "${MFEXT_HOME}/opt/devtools") if test "${N}" -gt 0; then unalias git fi Utilities --------- shellchecks ^^^^^^^^^^^ .. code-block:: none execute shellcheck on every shell script files found in the current directory usage: shellchecks test_globals_in_lua.sh ^^^^^^^^^^^^^^^^^^^^^^ .. code-block:: none 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 Packages -------- .. list-table:: :header-rows: 1 * - Name - Version - Description - Home-Page * - **ack** - 2.16-single-file - ACK is a tool like grep, optimized for programmers - https://beyondgrep.com/ * - **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/ *(3 packages)*