mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 06:13:14 +00:00
refactor(ecstore): scope dead code allowances (#4098)
This commit is contained in:
@@ -41,6 +41,10 @@ require_source_contains() {
|
||||
fi
|
||||
}
|
||||
|
||||
if grep -Eq '^[[:space:]]*#!\[allow\([^]]*dead_code' "${ROOT_DIR}/crates/ecstore/src/lib.rs"; then
|
||||
report_failure "ecstore crate root must not use allow(dead_code); scope temporary allowances to owning modules"
|
||||
fi
|
||||
|
||||
require_source_contains "docs/architecture/overview.md" "## Baseline" "architecture overview baseline section"
|
||||
require_source_contains "docs/architecture/overview.md" "## Core Principle" "architecture overview core principle section"
|
||||
require_source_contains "docs/architecture/overview.md" "## Phase Order" "architecture overview phase order section"
|
||||
|
||||
Reference in New Issue
Block a user