chore: Format code

This commit is contained in:
2026-10-04 23:05:19 +02:00
parent ee94d8ab06
commit 83878d483d
3 changed files with 20 additions and 20 deletions
+3 -3
View File
@@ -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
+12 -12
View File
@@ -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 (`<chrono>`, `<vector>`, etc.)
2. _(blank line)_
3. C standard library headers (`<stdlib.h>`, `<string.h>`, 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 (`<chrono>`, `<vector>`, etc.)
2. _(blank line)_
3. C standard library headers (`<stdlib.h>`, `<string.h>`, 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,
+5 -5
View File
@@ -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()