From 67849e66dc6e6bc047a8bf9186be42d73fc47038 Mon Sep 17 00:00:00 2001 From: TCL <1620508360@qq.com> Date: Thu, 21 Jul 2022 23:43:32 +0800 Subject: [PATCH] chore: add format.sh --- dependency/shell/format.sh | 21 +++++++++++++++++++++ installer/Installer/AssemblyInfo.cs | 6 +++--- launcher/Launcher/AssemblyInfo.cs | 6 +++--- 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 dependency/shell/format.sh diff --git a/dependency/shell/format.sh b/dependency/shell/format.sh new file mode 100644 index 0000000..dba6115 --- /dev/null +++ b/dependency/shell/format.sh @@ -0,0 +1,21 @@ +for i in {1..10} +do +find . -iname "*.cs" \ + -or -iname "*.c" \ + -or -iname "*.h" \ + -or -iname "*.C" \ + -or -iname "*.H" \ + -or -iname "*.cpp" \ + -or -iname "*.hpp" \ + -or -iname "*.cc" \ + -or -iname "*.hh" \ + -or -iname "*.c++" \ + -or -iname "*.h++" \ + -or -iname "*.cxx" \ + -or -iname "*.hxx" \ + -or -iname "*.i" \ + -or -iname "*.ixx" \ + -or -iname "*.ipp" \ + -or -iname "*.i++" \ + | xargs clang-format -i +done diff --git a/installer/Installer/AssemblyInfo.cs b/installer/Installer/AssemblyInfo.cs index b89be78..87c30a8 100644 --- a/installer/Installer/AssemblyInfo.cs +++ b/installer/Installer/AssemblyInfo.cs @@ -1,9 +1,9 @@ using System.Windows; [assembly:ThemeInfo( - ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) + ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) ResourceDictionaryLocation.SourceAssembly // where the generic resource dictionary is located //(used if a resource is not found in the page, // app, or any theme specific resource dictionaries) diff --git a/launcher/Launcher/AssemblyInfo.cs b/launcher/Launcher/AssemblyInfo.cs index b89be78..87c30a8 100644 --- a/launcher/Launcher/AssemblyInfo.cs +++ b/launcher/Launcher/AssemblyInfo.cs @@ -1,9 +1,9 @@ using System.Windows; [assembly:ThemeInfo( - ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) + ResourceDictionaryLocation.None, // where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) ResourceDictionaryLocation.SourceAssembly // where the generic resource dictionary is located //(used if a resource is not found in the page, // app, or any theme specific resource dictionaries)