lib/colors: don't warn on unused variables

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.
pull/1947/head
John D Pell 2021-09-14 13:24:39 -07:00
parent 94c2ea60cc
commit 18c7e72ff5
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash # shellcheck shell=bash
# shellcheck disable=SC2005
# shellcheck disable=SC2034
function __ { function __ {
echo "$@" echo "$@"