Skip to content

v0.14.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Sep 11:47
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.
02e42e0

Important

declscope v0.14.0 requires Go 1.27 and enables strict surplus and unused checks by default.

Strict checks

  • surplus reports each declaration that gets package scope from a directive but has no visible use from another namespace. Safe fixes add //declscope:private.
  • unused reports 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 loose to judge a directive as a whole, or off to 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