From 83878d483d67f5d8fa9465403aadeff35ddc57c3 Mon Sep 17 00:00:00 2001 From: portersky Date: Sun, 4 Oct 2026 23:05:19 +0200 Subject: [PATCH] chore: Format code --- .agents/skills/git/SKILL.md | 6 +++--- AGENTS.md | 24 ++++++++++++------------ CMakeLists.txt | 10 +++++----- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.agents/skills/git/SKILL.md b/.agents/skills/git/SKILL.md index 4d3054f..6580b7a 100644 --- a/.agents/skills/git/SKILL.md +++ b/.agents/skills/git/SKILL.md @@ -1,9 +1,9 @@ --- name: git description: >- - Git workflow: commit message format, co-author trailers, tagging, and - branching conventions. Use when committing changes, creating release tags, or - following branch naming rules. + Git workflow: commit message format, co-author trailers, tagging, and + branching conventions. Use when committing changes, creating release tags, + or following branch naming rules. --- # Git Skill diff --git a/AGENTS.md b/AGENTS.md index 1e2c7fb..bdcd00c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -33,23 +33,23 @@ document its configure, build, and test commands here. - **Naming:** `SCREAMING_SNAKE_CASE` only for macros and constants - **Header extensions:** C++ headers use `.hpp`, C headers use `.h` - Include order: - 1. C++ standard library headers (``, ``, etc.) - 2. _(blank line)_ - 3. C standard library headers (``, ``, etc.) - 4. _(blank line)_ - 5. OS-specific headers (Windows API, POSIX, etc.) - 6. _(blank line)_ - 7. Third-party dependencies (`"fmt/core.h"`, etc.) - 8. _(blank line)_ - 9. Local/project headers + 1. C++ standard library headers (``, ``, etc.) + 2. _(blank line)_ + 3. C standard library headers (``, ``, etc.) + 4. _(blank line)_ + 5. OS-specific headers (Windows API, POSIX, etc.) + 6. _(blank line)_ + 7. Third-party dependencies (`"fmt/core.h"`, etc.) + 8. _(blank line)_ + 9. Local/project headers ## Shell Scripts - Always use `#!/bin/sh` shebang for shell scripts - Scripts must be POSIX compliant (no bashisms) - When providing commands to users: - - Windows/PowerShell: use `` ` `` for line continuation - - Unix/Linux/macOS: use `\` for line continuation + - Windows/PowerShell: use `` ` `` for line continuation + - Unix/Linux/macOS: use `\` for line continuation ## Commit Messages @@ -84,7 +84,7 @@ releases of the course material. - All markdown files are formatted with **oxfmt** - **Always run `npx oxfmt --write .` after editing any markdown file** - - This is mandatory. Do not skip it. Run it before finishing your response + - This is mandatory. Do not skip it. Run it before finishing your response - Use `npx oxfmt --check .` to verify formatting before committing - Config is in `.oxfmtrc.json` at the project root - Do not manually fight the formatter. Let oxfmt handle spacing, line breaks, diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c0356e..91fdfef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,9 +24,9 @@ target_link_libraries(hello PRIVATE fmt::fmt) option(BUILD_TESTING OFF "Build Unity/CMock test suites") if (BUILD_TESTING AND NOT IS_EMSCRIPTEN) - set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE) - enable_testing() - find_package(Unity REQUIRED) - find_package(CMock REQUIRED) - add_subdirectory(tests) + set(CMAKE_SKIP_TEST_ALL_DEPENDENCY FALSE) + enable_testing() + find_package(Unity REQUIRED) + find_package(CMock REQUIRED) + add_subdirectory(tests) endif()