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

types/strict/go

The type checker runs in strict mode

Implements types/strict for go.

Severitywarning
Tiers1, 2
Stacksgo
Scopeeach
Kindexpr
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

The compiler checks the types of every build; there is no separate type checker to make strict. Warnings the compiler can raise are covered by lint/strict.

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/#go


Generated by fleetlint docs from catalog v0.2.0.