·
1 commit
to main
since this release
Immutable
release. Only release title and notes can be modified.
Important
declscope v0.14.0 requires Go 1.27 and enables strict surplus and unused checks by default.
Strict checks
surplusreports each declaration that gets package scope from a directive but has no visible use from another namespace. Safe fixes add//declscope:private.unusedreports scope directives that do not change the scope in the current configuration, and ignores that silence no report. Safe fixes remove redundant scope directives.- Set either rule to
looseto judge a directive as a whole, oroffto disable the rule.
Go 1.27
Building and installing declscope requires Go 1.27 or newer.
Install
mise use "github:mpyw/declscope@0.14.0"Full changelog: v0.13.4...v0.14.0