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:
strictenables the default rule set.standardkeeps rules with a correctness or performance impact, plus cheap auto-fixable formatting rules, while disabling purely stylistic and informational rules.carefulkeeps only medium/high-importance rules and relaxes cyclomatic complexity and parameter-count thresholds for a quieter first pass over an unfamiliar or legacy project.
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.
game: the game whose Papyrus dialect and runtime APIs the project targets. Acceptsskyrim,legacy,fallout4, orstarfield; omitted keys default toskyrimfor compatibility with existing configuration files.compiler_path: an explicit path toPapyrusCompiler.exe, set via the app's Settings tab. When unset (or blank), the app auto-detects it atPapyrusCompiler.exeinside aPapyrus Compilerdirectory one level above the project's.achlistdirectory (the layout used by Bethesda's Creation Kit tooling, where a game'sDatadirectory sits alongside aPapyrus Compilerdirectory in the game's install root).additional_script_roots: extra directories, besides the conventionalscripts/sourceandsource/scriptsunder the project root, to search for.pscfiles - set via the app's Settings tab, one per line. Each entry is resolved relative to the project root unless it's already an absolute path. Searched (after the two conventional directories, in the order listed) when resolving cross-script lookups for the "Argument type check"/"Return type check"/"Function override" lints and autocompletion, and appended to the compiler's-iargument (see Compiling a script) - useful when a script imports from a shared library location outside the project. The CLI also accepts one or more--script-root <path>flags on top of this setting (see the CLI reference), and, for a.ppj(Papyrus Project XML) input, feeds that file's own<Import>entries in on top too.initalso seeds this setting itself from a.ppjfile found in the directory it initializes, if that config has none of its own yet (see the CLI reference's "Initializing a project" section).lookup_script_roots: extra directories searched only as a last-resort fallback when resolving a script by name for analysis - argument/return types,Extends, autocompletion - set via the app's Settings tab, one per line. Each entry is resolved relative to the project root unless it's already an absolute path. They are searched only after the two conventional directories andadditional_script_rootsabove, are never linted themselves, are ignored byconflicting-script-versions, and are not added to the compiler's-iargument. Intended for third-party dependencies so a project can type-check against them without treating them as part of the project. Base-game scripts do not need to be added here: their pre-parsed ASTs are bundled with Papyrus Lint.compile_check: whether the desktop app and the CLI also run PapyrusCompiler.exe against a.pscas part of linting it - set via the app's Settings tab, alongsidecompiler_path.falseby default, since it's slower than the lint engine's own, dependency-free checks and requires a compiler path - configured or auto-detected (seecompiler_pathabove). When enabled, PapyrusCompiler.exe's own reported errors (e.g. a syntax mistake the lint engine's more forgiving parser lets through) are added to the results as[error]diagnostics, the same way the app's other lints are. Compiles into a throwaway temporary directory rather than the project's real output directory, so enabling this never touches (or requires write access to) the project's actual compiled.pexoutput - see Compiling a script.fail_on_warningandfail_on_infoaffect only the CLI exit status. The diagnostics are still printed, and the desktop app always displays every severity.- Rule keys replace hyphens in rule ids with underscores (for example,
float-equalitybecomesfloat_equality). Disabling a rule also disables its automatic fix. Consult the annotated default file for the current rule list and defaults rather than copying them into another document.