Configuration¶
asciilint looks for asciilint.toml in the current directory and then upward.
Use --config to choose a file explicitly or --no-config to disable config
loading.
[asciilint]
paths = ["."]
respect_gitignore = true
ignore_files = [".asciilintignore"]
allowed_ranges = ["U+0000-U+007F"]
allowed_chars = []
disallowed_ranges = []
disallowed_chars = []
max_issues_per_file = 5
Ignore files¶
.gitignore is respected by default. Additional ignore files can be configured
in TOML or passed on the command line:
Every ignore file must use gitignore syntax. Matching is handled by pathspec;
asciilint applies loaded specs to discovered file paths in batches instead of
checking each path against each pattern one by one.
Character policy¶
The default policy is ASCII-only:
Ranges support these forms:
U+0000-U+007F0x20..0x7e32-126a-zU+00A9for a single code point
Allow rules define the full permitted set. Deny rules are then applied on top and take precedence.
Allow Latin-1 but reject é:
Allow any Unicode character except selected punctuation:
UTF-8 only¶
The processing model is UTF-8 in, UTF-8 out. Convert text files to UTF-8 before
running asciilint. If a file looks like text but cannot be decoded as UTF-8,
asciilint reports a read error and skips that file.