Skip to main content

Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 (RFC 2119, RFC 8174) when, and only when, they appear in all capitals, as shown here.

A tool is any program that reads Lore files. A conforming tool meets every requirement of this document that applies to what it does, and passes every conformance example of each kind it implements (see Conformance examples).

Terms used throughout:

  • Governed repo: the repository whose change is being reviewed. Paths are relative to its root and separated by /.
  • Lore folder: a directory named .lore.
  • Lore file: a file whose name ends in .lore and that sits inside a Lore folder (see Files and folders).
  • Base: the directory that contains a Lore file's Lore folder. When a path holds more than one Lore folder, the first one decides, counted from the repository root, or for a file in an external folder from its marked directory (see Files and folders and External folders). Globs and plain src paths in the file resolve relative to the base.
  • External folder: Lore kept outside the governed repo, in a directory tree that a .loreconfig repo key maps onto the governed repo. A tool finds external folders in the given folders its user hands it (see External folders).
  • Lore root: the directory where the upward lookup of .loreconfig files stops (see .loreconfig).
  • Element: a tagged section of a .lore file: an opening tag line, the lines of its contents, and a closing tag line.
  • File block: a <defaults> or <scope> element at the top level of a file. It applies to every entry in that file.
  • Entry: a <rule> or <context> element.
  • Change: a set of changed files and, for each one, its added lines and its removed lines. An added file has no removed lines; a deleted file has no added lines. A diff describes a change.
  • Eligible: an entry is eligible for a change when it has no error, is not disabled, its scope matches at least one changed file that no .loreconfig disable list switches it off for, and its conditions hold (see Eligibility).
  • Error and warning: problems a tool reports by name. An error excludes the file, entry or .loreconfig it is found in; a warning excludes nothing.
  • Blank line: a line that is empty or holds only spaces and tabs.
  • Column 0: a line starts at column 0 when its first character is not a space or a tab.