Home

stencila linters lint

Lint a file

Mainly intended for testing linters during development of Stencila. To lint a document use stencila lint.

Usage

stencila linters lint [OPTIONS] <FILE>

Examples

# Lint a Python file
stencila linters lint script.py

# Lint and format a JavaScript file
stencila linters lint app.js --format

# Lint and fix issues where possible
stencila linters lint code.r --fix

# Lint with both formatting and fixing
stencila linters lint code.py --format --fix

Arguments

NameDescription
<FILE>The file to lint.

Options

NameDescription
-l, --linterThe name of the linter to use.
--formatFormat the content of the file. Possible values: true, false.
--fixFix warnings and errors in the file where possible. Possible values: true, false.
© 2026 Stencila