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"
| Key | Effect |
|---|---|
profile | the severity of each rule, see Rules |
rules | the severity of one rule |
words | the technical names and verbs of the project, see Words |
word-lists | files, URLs and bundled lists of words |
subtree-word-lists | globs 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-lists | use the bundled lists (default: true) |
ignore | paths that memelint does not examine, in the syntax of .gitignore |
check | examine 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>.check | examine 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>.check | examine 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.