mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-10 19:03:11 +00:00
chore(Agents): Update max line length from 80 to 120 characters (#26271)
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ reviews:
|
|||||||
- path: "**/*.{cpp,h,hpp}"
|
- path: "**/*.{cpp,h,hpp}"
|
||||||
instructions: |
|
instructions: |
|
||||||
AzerothCore C++ conventions (CI enforces these with -Werror; flag violations):
|
AzerothCore C++ conventions (CI enforces these with -Werror; flag violations):
|
||||||
- C++20. 4-space indent, tabs forbidden. UTF-8, LF, max 80 columns, trailing newline.
|
- C++20. 4-space indent, tabs forbidden. UTF-8, LF, max 120 columns, trailing newline.
|
||||||
- Allman braces. No braces around single-line statements. `if (x)`, never `if(x)` or `if ( x )`.
|
- Allman braces. No braces around single-line statements. `if (x)`, never `if(x)` or `if ( x )`.
|
||||||
- `auto const&` (not `const auto&`); `Type const*` (not `const Type*`).
|
- `auto const&` (not `const auto&`); `Type const*` (not `const Type*`).
|
||||||
- Use fmt-style `{}` format specifiers, never printf-style `%u`/`%s`.
|
- Use fmt-style `{}` format specifiers, never printf-style `%u`/`%s`.
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Based on CLAUDE.md, always verify:
|
|||||||
- 4-space indentation for C++ (no tabs)
|
- 4-space indentation for C++ (no tabs)
|
||||||
- 2-space indentation for JSON, YAML, shell scripts
|
- 2-space indentation for JSON, YAML, shell scripts
|
||||||
- UTF-8 encoding, LF line endings
|
- UTF-8 encoding, LF line endings
|
||||||
- Max 80 character line length
|
- Max 120 character line length
|
||||||
- No braces around single-line statements
|
- No braces around single-line statements
|
||||||
- Format variables in output using {} placeholders instead of printf-style format specifiers like %u
|
- Format variables in output using {} placeholders instead of printf-style format specifiers like %u
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ python apps/codestyle/codestyle-sql.py # SQL (compares to origin/master)
|
|||||||
|
|
||||||
Hard rules (also enforced by CI with `-Werror`):
|
Hard rules (also enforced by CI with `-Werror`):
|
||||||
|
|
||||||
- 4-space indent for C++ (tabs forbidden); 2-space for JSON/YAML/sh/ts/js. UTF-8, LF, max 80 cols, trailing newline.
|
- 4-space indent for C++ (tabs forbidden); 2-space for JSON/YAML/sh/ts/js. UTF-8, LF, max 120 cols, trailing newline.
|
||||||
- Allman braces. No braces around single-line statements. `if (x)` — never `if(x)` or `if ( x )`.
|
- Allman braces. No braces around single-line statements. `if (x)` — never `if(x)` or `if ( x )`.
|
||||||
- `auto const&` (not `const auto&`); `Type const*` (not `const Type*`).
|
- `auto const&` (not `const auto&`); `Type const*` (not `const Type*`).
|
||||||
- Use `{}` format specifiers (`fmt`-style), not `%u`/`%s`.
|
- Use `{}` format specifiers (`fmt`-style), not `%u`/`%s`.
|
||||||
|
|||||||
Reference in New Issue
Block a user