types/strict/hugo
The type checker runs in strict mode
Implements types/strict for hugo.
| Severity | warning |
| Tiers | 1, 2 |
| Stacks | hugo |
| Scope | each |
| Kind | expr |
| Source | library v0.6.0 |
| Selected by | fleetlint-recommended@v0.6.0 |
Requirement
A Hugo site has no type checker; templates are checked by the build with –panicOnWarning (lint/configured).
Why
A lenient type checker lets untyped and implicitly dynamic values through, which is where the bugs it exists to catch hide.
Applies when
falseCheck
trueFix
Switch the type checker to strict mode (see https://fleetlint.org/stacks/).
Agent instruction: Switch the type checker to strict mode and list the errors that appear instead of adding ignores.
Sources
- https://fleetlint.org/baseline/#static-analysis (convention)
- https://fleetlint.org/stacks/#hugo–static-sites (convention)
Generated by fleetlint docs from catalog v0.6.0.