format/configured/hugo
A formatter is configured
Implements format/configured for hugo.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | hugo |
| Scope | each |
| Kind | expr |
| Source | library v0.5.0 |
| Selected by | fleetlint-recommended@v0.5.0 |
Requirement
Hugo has no formatter for content and templates; the Markdown and the code of other stacks in the site are formatted by their own tools.
Why
Without one formatter every editor reformats differently and diffs fill with whitespace churn that hides the real change.
Applies when
falseCheck
trueFix
Add the stack’s formatter to the hooks and the fmt target (see https://fleetlint.org/stacks/).
Agent instruction: Add the stack’s formatter to the pre-commit hooks and the fmt target; reformat the code base in a separate commit.
Sources
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://fleetlint.org/stacks/#hugo–static-sites (convention)
Generated by fleetlint docs from catalog v0.5.0.