Skip to main content

Errors and warnings

Every problem a tool reports has one of these names. An error excludes what it is found in, and a warning excludes nothing. The list is also given as errors.json.

Whether an error excludes a file, an entry or a .loreconfig, and for some errors where it is found, is listed in Error reach.

Errors​

unreadable-structure​

Kind: error

The file structure cannot be read as Lore elements.

top-level-text​

Kind: error

Text appears at the top level outside any element.

unknown-element​

Kind: error

An element name is not part of the format.

duplicate-file-block​

Kind: error

A file contains a second <defaults> or a second <scope>.

file-block-after-entry​

Kind: error

A file block appears after the first entry.

invalid-yaml​

Kind: error

A block body is not valid YAML.

duplicate-key​

Kind: error

A mapping repeats the same key.

yaml-feature-not-allowed​

Kind: error

A block uses a YAML feature outside the allowed subset.

invalid-defaults​

Kind: error

A defaults block fails its schema.

invalid-scope​

Kind: error

A scope block fails its schema.

invalid-when​

Kind: error

A when block fails its schema.

invalid-meta​

Kind: error

A meta block is not a mapping.

invalid-source​

Kind: error

A source block fails its schema.

missing-id​

Kind: error

An entry has no id attribute.

invalid-id​

Kind: error

An id does not match the id pattern.

unknown-attribute​

Kind: error

An element carries an attribute it does not define.

duplicate-attribute​

Kind: error

An attribute appears more than once on one element.

invalid-attribute-value​

Kind: error

An attribute value is not allowed for that attribute.

disabled-has-value​

Kind: error

The disabled attribute is given a value.

unknown-child​

Kind: error

An element contains a child it does not allow.

duplicate-child​

Kind: error

An element contains a child that may appear only once.

unknown-condition​

Kind: error

A condition names a key that is not defined.

empty-when​

Kind: error

A when block has no conditions.

invalid-glob​

Kind: error

A glob string is malformed.

glob-escapes-base​

Kind: error

A glob contains a .. segment that escapes its base directory.

leading-slash​

Kind: error

A scope glob starts with a slash.

empty-files​

Kind: error

A scope files list is empty.

regex-outside-dialect​

Kind: error

A regular expression uses syntax outside the allowed dialect.

regex-not-one-line​

Kind: error

A regular expression spans more than one line.

inconsistent-indentation​

Kind: error

An element's indented lines share no common indentation.

unknown-category​

Kind: error

A category is not built in or declared in config.

duplicate-id​

Kind: error

Two entries resolve to the same id.

src-escapes-root​

Kind: error

A src path resolves outside the Lore root.

invalid-loreconfig​

Kind: error

A .loreconfig file is not valid UTF-8 or allowed YAML, or fails its schema.

repo-inside-repo​

Kind: error

A .loreconfig in the governed repo has a repo key.

nested-repo​

Kind: error

A directory marked with repo is below another marked directory.

Warnings​

missing-category​

Kind: warning

A rule has no category and no default supplies one.

empty-scope​

Kind: warning

Each of an entry's files globs is disjoint from each of its file scope's files globs.

missing-src-target​

Kind: warning

A src attribute points at a file that does not exist.

unsupported-check-language​

Kind: warning

A check uses a language the tool does not support.

ast-grep-no-language​

Kind: warning

An ast-grep check skips a changed file whose extension maps to no ast-grep language.

unknown-disabled-id​

Kind: warning

A disable list names an id of no entry it can switch off.

untracked-given-folder​

Kind: warning

A given folder in no working copy, not marked loose, was collected whole.