Skip to main content

Module conventions

Module conventions 

Source
Expand description

Conventions engine: measured coding conventions per repo, with support counts, central exemplars and counterexamples, mined from facts and the graph. An LLM may phrase them; it never invents them. Conventions shared by several repos form the org baseline.

Structs§

Convention
Manual
A person’s change: a new convention, or an edit or hiding (replaces) of a measured one.
Store
People’s changes, one JSON object each under <index_root>/_conventions/; indexing never touches them.

Enums§

Change
Origin
Write
What a change to one convention writes.

Constants§

FEW
Below this many instances a convention is marked as having few examples.
MANUAL
ORG
Repo name used for org-wide conventions.

Functions§

and_list
apply
Measured conventions with people’s changes applied: hidden ones dropped, edits replace the rule, new ones appended.
casing
Identifier casing: snake_case, camelCase, PascalCase, SCREAMING_SNAKE.
change
The write for change to the convention id; current is the applied list.
is_test
manual_blocking
measured_id
mine
thousands
1689 as 1,689.
write_blocking