Awesome Reviewers

Reviewer · Naming Conventions

Accurate, semantic naming

Names for types, fields, functions, variables, and test cases must unambiguously and accurately convey what they represent, matching both the actual behavior/content and established domain or language conventions. Avoid names that imply something different from reality (e.g. a field named `workspace_manifest` that actually stores a path should be...

Instruction

Names for types, fields, functions, variables, and test cases must unambiguously and accurately convey what they represent, matching both the actual behavior/content and established domain or language conventions. Avoid names that imply something different from reality (e.g. a field named workspace_manifest that actually stores a path should be workspace_manifest_path; a method named fold should behave like Iterator::fold or be renamed, as in walk/try_for_each for recursive traversal) or that disagree with external tools/specs (e.g. use "proc-macro" not "procmacro" to match rustc’s accepted values). When a domain term already has a specific meaning in the codebase (e.g. “root” refers to units/packages explicitly selected by the user, not just workspace members), reuse that exact term rather than introducing a near-synonym like is_member that can be confused with it. When two similarly-named functions exist (e.g. extern_crate_name_and_dep_name vs a new dep_extern_crate_name_and_dep_name), prefer names that describe their distinct policy/purpose (lib_dependency_name, artifact_dependency_name) so callers can tell them apart without reading the implementation. Keep companion names consistent, e.g. if one function is insert_or_dedup_out_dir, its single-file counterpart should be insert_or_dedup_file, and CLI flags describing the same kind of value (a file path) should use the same placeholder, such as <PATH> for both --manifest-path and --lockfile-path. In tests, name fixtures, packages, and test functions after the role or behavior they demonstrate instead of generic placeholders (foo, bar, weird) — e.g. name packages selected, foo-dep, public-bar-dep instead of foo, bar, baz, and split tests that cover multiple distinct behaviors so each test name reflects exactly one behavior being verified. When importing a widely-used generic type name, alias it to avoid future collisions, e.g. use anyhow::Context as _;. Before merging, check sibling/parallel names for symmetry, verify terminology against the domain glossary and any external tool output, and rename if a reviewer or new reader could reasonably misinterpret the identifier’s purpose.</description> </invoke>