|
| 1 | +# Also take into account developer comments |
| 2 | +dev_comments = false |
| 3 | + |
| 4 | +# Skip the README.md file as defined in the cargo manifest |
| 5 | +skip_readme = false |
| 6 | + |
| 7 | +[Hunspell] |
| 8 | +# lang and name of `.dic` file |
| 9 | +lang = "en_GB" |
| 10 | + |
| 11 | +# Additional search paths, which take precedence over the default |
| 12 | +# os specific search dirs, searched in order, defaults last |
| 13 | +search_dirs = ["."] |
| 14 | + |
| 15 | +# Adds additional dictionaries, can be specified as |
| 16 | +# absolute paths or relative in the search dirs (in this order). |
| 17 | +# Relative paths are resolved relative to the configuration file |
| 18 | +# which is used. |
| 19 | +# Refer to `man 5 hunspell` |
| 20 | +# or https://www.systutorials.com/docs/linux/man/4-hunspell/#lbAE |
| 21 | +# on how to define a custom dictionary file. |
| 22 | +extra_dictionaries = ["lingo.dic"] |
| 23 | + |
| 24 | +# If set to `true`, the OS specific default search paths |
| 25 | +# are skipped and only explicitly specified ones are used. |
| 26 | +skip_os_lookups = true |
| 27 | + |
| 28 | +# Use the builtin dictionaries if none were found in |
| 29 | +# in the configured lookup paths. |
| 30 | +# Usually combined with `skip_os_lookups=true` |
| 31 | +# to enforce the `builtin` usage for consistent |
| 32 | +# results across distributions and CI runs. |
| 33 | +# Setting this will still use the dictionaries |
| 34 | +# specified in `extra_dictionaries = [..]` |
| 35 | +# for topic specific lingo. |
| 36 | +use_builtin = true |
| 37 | + |
| 38 | + |
| 39 | +[Hunspell.quirks] |
| 40 | +# Transforms words that are provided by the tokenizer |
| 41 | +# into word fragments based on the capture groups which are to |
| 42 | +# be checked. |
| 43 | +# If no capture groups are present, the matched word is whitelisted. |
| 44 | +transform_regex = ["^'([^\\s])'$", "^[0-9]+x$"] |
| 45 | + |
| 46 | +allowlist = ["(?:__|[*#])|\\[(.*?)\\]\\(.*?\\)"] |
| 47 | + |
| 48 | +# Accepts `alphabeta` variants if the checker provides a replacement suggestion |
| 49 | +# of `alpha-beta`. |
| 50 | +allow_concatenation = true |
| 51 | + |
| 52 | +# And the counterpart, which accepts words with dashes, when the suggestion has |
| 53 | +# recommendations without the dashes. This is less common. |
| 54 | +allow_dashed = false |
| 55 | + |
| 56 | +# Check the expressions in the footnote references. By default this is turned on |
| 57 | +# to remain backwards compatible but disabling it could be particularly useful |
| 58 | +# when one uses abbreviations instead of numbers as footnote references. For |
| 59 | +# instance by default the fragment `hello[^xyz]` would be spellchecked as |
| 60 | +# `helloxyz` which is obviously a misspelled word, but by turning this check |
| 61 | +# off, it will skip validating the reference altogether and will only check the |
| 62 | +# word `hello`. |
| 63 | +check_footnote_references = false |
| 64 | + |
| 65 | +[NlpRules] |
| 66 | +# Allows the user to override the default included |
| 67 | +# exports of LanguageTool, with other custom |
| 68 | +# languages |
| 69 | + |
| 70 | +# override_rules = "/path/to/rules_binencoded.bin" |
| 71 | +# override_tokenizer = "/path/to/tokenizer_binencoded.bin" |
| 72 | + |
| 73 | +[Reflow] |
| 74 | +# Reflows doc comments to adhere to adhere to a given maximum line width limit. |
| 75 | +max_line_length = 120 |
0 commit comments