Skip to content

imports-blocklist

Reject configured imports.

Updated View as Markdown

Default severity: warning

Reject configured imports.

Bad

import "log" // when log is configured as blocked

Good

import "log/slog"

Configuration

Option Type Default Description
blocked-imports strings [] Import paths that this check rejects.
[checks.imports-blocklist]
blocked-imports = []
Navigation

Type to search…

↑↓ navigate↵ selectEsc close