From 18c7e72ff5f68d24b7f806e7d1289bbefcd2db3f Mon Sep 17 00:00:00 2001 From: John D Pell Date: Tue, 14 Sep 2021 13:24:39 -0700 Subject: [PATCH] lib/colors: don't warn on unused variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We assign a large number of variables here and they may or may not be used anywhere else, so disable SC2034 for this file (only). Alsö disable SC2005 as the functions in this file were written before `printf` was invented and have to do some fancy metascripting to get escape sequences interpreted reliably. I’m not smart enough to fix this to use `printf`, so leave it for now. --- themes/colors.theme.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/colors.theme.bash b/themes/colors.theme.bash index fbb1dc5c..d5044d05 100644 --- a/themes/colors.theme.bash +++ b/themes/colors.theme.bash @@ -1,4 +1,6 @@ -#!/usr/bin/env bash +# shellcheck shell=bash +# shellcheck disable=SC2005 +# shellcheck disable=SC2034 function __ { echo "$@"