|
| 1 | +# mdbook-lint Bug Report |
| 2 | + |
| 3 | +Found multiple bugs in mdbook-lint v0.11.2 during redisctl documentation linting. |
| 4 | + |
| 5 | +## Bug 1: Configuration Rules Not Applied |
| 6 | + |
| 7 | +**Issue**: Rules defined in `.mdbook-lint.toml` configuration file are not being applied. |
| 8 | + |
| 9 | +**Expected**: Rules configured in the config file should override defaults. |
| 10 | + |
| 11 | +**Actual**: Default rule settings are used regardless of configuration. |
| 12 | + |
| 13 | +**Reproduction**: |
| 14 | +1. Create `.mdbook-lint.toml` with: |
| 15 | + ```toml |
| 16 | + [rules.MD013] |
| 17 | + line_length = 120 |
| 18 | + ``` |
| 19 | +2. Run `mdbook-lint lint file.md` |
| 20 | +3. Observe that MD013 still enforces 80 character limit instead of 120 |
| 21 | + |
| 22 | +**Evidence**: Lines over 80 chars trigger MD013 warnings despite config setting line_length = 120. |
| 23 | + |
| 24 | +## Bug 2: --fix Option Not Working |
| 25 | + |
| 26 | +**Issue**: The `--fix` option doesn't actually fix any issues, even for rules that should be auto-fixable. |
| 27 | + |
| 28 | +**Expected**: `mdbook-lint lint --fix file.md` should automatically fix issues like MD022, MD032, MD031, MD047. |
| 29 | + |
| 30 | +**Actual**: Command shows the same warnings but doesn't modify the file. |
| 31 | + |
| 32 | +**Reproduction**: |
| 33 | +1. Create test file with MD022 violations (missing blank lines after headings) |
| 34 | +2. Run `mdbook-lint lint --fix test.md` |
| 35 | +3. File remains unchanged despite warnings being shown |
| 36 | + |
| 37 | +**Test case**: |
| 38 | +```markdown |
| 39 | +# Heading |
| 40 | +Text directly after heading without blank line |
| 41 | +``` |
| 42 | + |
| 43 | +Should be auto-fixed to: |
| 44 | +```markdown |
| 45 | +# Heading |
| 46 | + |
| 47 | +Text directly after heading without blank line |
| 48 | +``` |
| 49 | + |
| 50 | +But file remains unmodified. |
| 51 | + |
| 52 | +## Environment |
| 53 | +- mdbook-lint version: 0.11.2 |
| 54 | +- OS: macOS (Darwin 24.6.0) |
| 55 | +- Configuration file present: `.mdbook-lint.toml` |
| 56 | + |
| 57 | +## Workaround |
| 58 | +Currently fixing issues manually by editing markdown files directly. |
| 59 | + |
| 60 | +## Impact |
| 61 | +These bugs prevent automated fixing and proper configuration of linting rules, requiring manual intervention for all markdown formatting issues. |
0 commit comments