Repository navigation
Commit cba175c
committed
fix(md077): accept the indent option instead of reporting it as unknown
The plain `impl_rule_config_methods!` arm derives the rule's known keys by
serializing the default config through JSON to TOML, which drops `None`
fields. An `Option` key is therefore invisible to the config key validator,
so `[MD077] indent = 4` printed "Unknown option for rule MD077: indent" and
failed the run under `--deny-config-warnings`, even though the setting was
read and applied. The `nullable` arm keeps the key visible to the validator.1 parent fea6322 commit cba175c
2 files changed
Lines changed: 20 additions & 1 deletion
File tree
- src/rules
- tests/config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
| 881 | + | |
882 | 882 | | |
883 | 883 | | |
884 | 884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
107 | 126 | | |
108 | 127 | | |
109 | 128 | | |
| |||
0 commit comments