← All docs

Configuration reference

Lint/fix behavior is configured via an optional papyrus-lint.yaml (or papyrus-lint.yml) at the project root. Any omitted setting uses its default. The complete, annotated default file is generated from the per-setting JSON files in project-settings/ and lint-settings/ (one file per key; order is lint-settings.yaml) and from shared/rules/. It is the reference for the available keys, accepted values, and rule switches. PapyrusLinterCLI init writes this file using the strict preset unless another preset is requested. The website renders the same document while it builds; write the file locally with python3 .github/scripts/generate_default_config.py only when you need the artifact itself.

Lint/fix behavior is configured via an optional papyrus-lint.yaml (or papyrus-lint.yml) at the project root. Any omitted setting uses its default. The complete, annotated default file is generated from the per-setting JSON files in project-settings/ and lint-settings/ (one file per key; order is lint-settings.yaml) and from shared/rules/. It is the reference for the available keys, accepted values, and rule switches. PapyrusLinterCLI init writes this file using the strict preset unless another preset is requested. The website renders the same document while it builds; write the file locally with python3 .github/scripts/generate_default_config.py only when you need the artifact itself.

For an .achlist, the project root is the directory containing that file. For a single .psc, the CLI looks for a nearby config and the conventional Scripts/Source or Source/Scripts layout. See Resolving a project for the exact search order.

A JSON Schema for editors that support YAML schema association is generated from those setting JSON files and shared/rules/ (python3 .github/scripts/generate_config_schema.py) and published at https://papyrus-lint.idrinth.de/schema/papyrus-lint.schema.json. The generated file is git-ignored (like the default YAML). Pages renders it while building the site, so it does not have to exist in a fresh checkout.

Papyrus Lint supports skyrim (Skyrim Special Edition/Anniversary Edition), legacy (Skyrim Legendary Edition — same Papyrus dialect and lint rules as skyrim, different Creation Kit / SKSE base scripts), fallout4, and starfield. Skyrim SE/AE is the default for configurations that omit game. The desktop app's new-project picker offers all four targets.

Suppressing one diagnostic

Diagnostics that cannot be disabled in source can be suppressed with an optional .papyrus-lint-ignore YAML file in the project root. Each entry names a source file (an absolute path or one relative to the project root), a 1-indexed line, and a rule id. It suppresses only that rule finding on that exact line:

- file: scripts/source/dce.psc
  line: 12
  rule: trailing-whitespace

Presets

PapyrusLinterCLI init --preset <name> selects the starting configuration:

The annotated built-ins are under shared/configuration/presets/.

Custom presets are full configuration files stored as <name>.yaml or <name>.yml in a presets directory next to the executable. They work in both the CLI and desktop app. Add one without copying it manually with:

PapyrusLinterCLI preset add <name> <path-to-papyrus-lint.yaml>

The name cannot be blank or one of the built-in names (strict, standard, careful). Existing custom presets are not overwritten unless --yes is passed.

View raw source on GitHub →