Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

memelint reads memelint.toml at the project root. Each key is optional. The first line gives your editor the schema:

#:schema https://raw.githubusercontent.com/antimemes/memelint/main/crates/memelint/memelint.schema.json

profile = "basic"                  # "basic" (the default) or "strict"
words = ["gantry", "sprocket"]
word-lists = ["words.txt", "https://example.com/team-words.txt"]
subtree-word-lists = ["experiments/*/memelint-words.txt"]
default-word-lists = true
ignore = ["vendor/", "*.generated.go"]
check = false                      # examine files (default: true for code, false for prose)

[rules]
"6.3" = "warning"                  # "error", "warning" or "off"

[languages.markdown]               # for the files of one language
check = true                       # examine these files (default: true for code, false for prose)
words = ["spread"]
word-lists = ["doc-words.txt"]
default-word-lists = true

[languages.markdown.rules]
"1.6" = "off"

[scopes.docs]                      # for the paths that `paths` names
paths = ["docs/"]                  # as in .gitignore, from the directory of memelint.toml
profile = "strict"
words = ["gantry"]
check = true                       # examine the files in these paths

[scopes.docs.rules]
"6.3" = "off"
KeyEffect
profilethe severity of each rule, see Rules
rulesthe severity of one rule
wordsthe technical names and verbs of the project, see Words
word-listsfiles, URLs and bundled lists of words
subtree-word-listsglobs of word files, each for the directory of the file and all directories below it; ignore does not apply to them, see Words
default-word-listsuse the bundled lists (default: true)
ignorepaths that memelint does not examine, in the syntax of .gitignore
checkexamine files (default: true for code, false for prose); true also examines prose
languages.<name>the same keys for the files of one language, see Languages
languages.<name>.checkexamine the files of one language (default: true for code, false for prose)
scopes.<name>the profile, rules and words of the paths that paths names, see Rules
scopes.<name>.checkexamine the files in these paths; this applies before the language and the top level

Markdown files are prose. memelint examines them only when [languages.markdown], a scope or the top level has check = true.