ci: bump oxi, clang, prettier, markdownlint (#12388)

* ci: bump oxi, clang, prettier, markdownlint

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: 移除不再使用clang-format的JSON文件

* chore: clang-format disable

* chore: clang版本更新

* chore: Auto update by pre-commit hooks [skip changelog]

* chore: ver注释

* docs: Modify the clang-format version restriction in the documentation to match the current changes

@zzyyyl

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: status102 <102887808+status102@users.noreply.github.com>
This commit is contained in:
Constrat
2025-04-20 03:42:41 +02:00
committed by GitHub
parent 68b61ffa3f
commit 995af0fcda
22 changed files with 85 additions and 67 deletions

View File

@@ -252,6 +252,7 @@ asst::battle::RoleCounts asst::CopilotConfig::parse_role_counts(const json::valu
asst::battle::DeployDirection asst::CopilotConfig::string_to_direction(const std::string& str)
{
// clang-format off
static const std::unordered_map<std::string, DeployDirection> DeployDirectionMapping = {
{ "Right", DeployDirection::Right }, { "RIGHT", DeployDirection::Right },
{ "right", DeployDirection::Right }, { "", DeployDirection::Right },
@@ -267,7 +268,7 @@ asst::battle::DeployDirection asst::CopilotConfig::string_to_direction(const std
{ "None", DeployDirection::None }, { "NONE", DeployDirection::None },
{ "none", DeployDirection::None }, { "", DeployDirection::None },
};
}; // clang-format on
if (auto iter = DeployDirectionMapping.find(str); iter != DeployDirectionMapping.end()) {
return iter->second;