From 2294c03800835ce93efab7d67c69da82f3b779bc Mon Sep 17 00:00:00 2001 From: Dexoron Date: Sun, 5 Jul 2026 17:36:55 +0800 Subject: [PATCH] New translations quality-commands.mdx (Polish) [ci skip] --- .../docs/commands/quality-commands.mdx.mdx | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 docs-crowdin-export/pl-PL/docs/commands/quality-commands.mdx.mdx diff --git a/docs-crowdin-export/pl-PL/docs/commands/quality-commands.mdx.mdx b/docs-crowdin-export/pl-PL/docs/commands/quality-commands.mdx.mdx new file mode 100644 index 0000000..cdfe503 --- /dev/null +++ b/docs-crowdin-export/pl-PL/docs/commands/quality-commands.mdx.mdx @@ -0,0 +1,60 @@ +--- +sidebar_label: Quality commands (test, fmt) +--- + +# Quality Commands + +## `dcr test` + +Runs tests. + +```bash +dcr test # debug profile +dcr test --release # release profile +dcr test --debug # explicit debug +dcr test --help # detailed help +``` + +Before first use, initialize tests: + +```bash +dcr test --init +``` + +This creates `tests/dcr_test.h` (framework) and `tests/test.c` (template). + +What `dcr test` does: + +1. Builds the project +2. Collects `tests/*.c` files (`.c` only, not `.cpp`) +3. Compiles and links each test file +4. Runs each test binary +5. Prints summary: TOTAL, PASS, SKIP, FAIL +6. Returns non-zero exit code on any FAIL + +## `dcr fmt` + +Formats C/C++ source files using `clang-format`. + +```bash +dcr fmt +``` + +Processes: `src/**/*.{c,cpp,cxx,cc,h,hpp,hxx,hh}` and `tests/**/*.{c,cpp,cxx,cc,h,hpp,hxx,hh}`. + +Uses `.clang-format` at the project root (if present), otherwise default clang-format style. + +## `dcr lint` + +Runs `clang-tidy` on C/C++ source files for static analysis. + +```bash +dcr lint # show diagnostics +dcr lint --fix # apply fixes automatically +dcr lint --help # detailed help +``` + +Processes: `src/**/*.{c,cpp,cxx,cc}` and `tests/**/*.{c,cpp,cxx,cc}`. + +Without `--fix`, clang-tidy reports warnings and errors without modifying files. +With `--fix`, clang-tidy applies automatic suggestions in place.