From a8cd63867cff42bbd224f8e0aac40336e1a33dfc Mon Sep 17 00:00:00 2001 From: YuleBest Date: Wed, 4 Feb 2026 05:47:23 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 功能/转换工具/json转xml.sh | 3 ++- 功能/转换工具/xml转json(将丢失注释).sh | 3 ++- 功能/转换工具/xml转yaml.sh | 3 ++- 功能/转换工具/yaml转xml.sh | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/功能/转换工具/json转xml.sh b/功能/转换工具/json转xml.sh index d42e74a..035e665 100755 --- a/功能/转换工具/json转xml.sh +++ b/功能/转换工具/json转xml.sh @@ -2,6 +2,7 @@ # FontMM # 将 json 转换为 xml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="json2xml" + # local mode="json2xml" local input="$2" local output="$1" diff --git a/功能/转换工具/xml转json(将丢失注释).sh b/功能/转换工具/xml转json(将丢失注释).sh index aaef78f..629fae9 100755 --- a/功能/转换工具/xml转json(将丢失注释).sh +++ b/功能/转换工具/xml转json(将丢失注释).sh @@ -2,6 +2,7 @@ # FontMM # 将 fonts.xml 转换为 json # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="xml2json" + # local mode="xml2json" local input="$1" local output="$2" diff --git a/功能/转换工具/xml转yaml.sh b/功能/转换工具/xml转yaml.sh index 701f14c..a660317 100755 --- a/功能/转换工具/xml转yaml.sh +++ b/功能/转换工具/xml转yaml.sh @@ -2,6 +2,7 @@ # FontMM # 将 fonts.xml 转换为 yaml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="xml2yaml" + # local mode="xml2yaml" local input="$1" local output="$2" diff --git a/功能/转换工具/yaml转xml.sh b/功能/转换工具/yaml转xml.sh index e1fd131..9eb3922 100755 --- a/功能/转换工具/yaml转xml.sh +++ b/功能/转换工具/yaml转xml.sh @@ -2,6 +2,7 @@ # FontMM # 将 yaml 转换为 xml # By Yule +# shellcheck disable=SC2154 # 配置 SCRIPT_DIR="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" @@ -23,7 +24,7 @@ mkdir -p "$WORK_DIR/tmp" # 转换函数 conversion() { - local mode="yaml2xml" + # local mode="yaml2xml" local input="$2" local output="$1"