fleetlint Policy for a fleet of repositories
v0.5
Getting started

types/strict/hugo

The type checker runs in strict mode

Implements types/strict for hugo.

Severitywarning
Tiers1, 2
Stackshugo
Scopeeach
Kindexpr
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.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

false

Check

true

Fix

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.

See: https://fleetlint.org/baseline/#static-analysis, https://fleetlint.org/stacks/#hugo--static-sites


Generated by fleetlint docs from catalog v0.2.0.