structure-check: gate counts code lines, docs and comments in English
Gate ignores blank and full-line comment lines so the 250-line limit measures code bulk, not documentation weight; docs/README.md synced. Translate code comments to English in classfile, core config, namegen, rename assign, constants forms. Expand Plausible word bank with client-ecosystem terms (Module, Setting, Mixin, ...). cargo fmt clean, check.sh green.
This commit is contained in:
parent
ec28ec82e3
commit
39178420e4
42 changed files with 532 additions and 437 deletions
|
|
@ -25,7 +25,9 @@
|
|||
искусственно. Не учитываются также `Cargo.lock`, `.gitignore`, корень крейта
|
||||
(в нём всегда лежат `Cargo.toml` + `build.rs`).
|
||||
|
||||
1. **Не больше 250 строк** в одном `.rs` файле.
|
||||
1. **Не больше 250 строк кода** в одном `.rs` файле. Пустые строки и
|
||||
полно-строчные комментарии (`//`, `///`, `//!`) не считаются —
|
||||
измеряется объём кода, а не документации.
|
||||
2. **Не больше 4 `.rs`-файлов** в одной директории. Подпапки не ограничены:
|
||||
`src/` может содержать `lib.rs` и три модуля-директории, каждая из которых
|
||||
в свою очередь содержит не больше четырёх файлов.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue