Skip to content

Releases: ashanbrown/forbidigo

v2.1.0

25 Jan 23:39
77ce5aa
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.0.1...v2.1.0

Drop golang < 1.18

25 Jan 21:04
c0fe523
Compare
Choose a tag to compare
v2.0.1

Bump version to v2 due to change of support for older golang versions…

Upgrade x/tools

26 Nov 01:35
e4c2790
Compare
Choose a tag to compare

Upgrades x-tools to fix go 1.23, drops support for go < 1.18

v1.6.0

04 Jul 14:31
ab8eef6
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.4...v1.6.0

v1.5.4

03 Jul 02:02
f6adf99
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.5.3...v1.5.4

Slight change to handling of missing type information

11 Jun 18:12
c506b28
Compare
Choose a tag to compare
Refactor package name extraction slightly (#36)

Rename one method and handle case where some type information is missing slightly better.

Ensure that types within a selector are matched

11 Jun 17:39
fbbca18
Compare
Choose a tag to compare
Ensure we match types within a selector (#35)

Also refactor expansion code slightly

Remove deprecated pkg/errors package

25 Feb 14:28
2a92cc5
Compare
Choose a tag to compare
Remove deprecated pkg errors (#28)

Replace github.com/pkg/errors with native error handling

pkg/errors has been deprecated since go1.13.
Let's also set go1.13 as the new minimum.

---------

Co-authored-by: Oleksandr Redko <[email protected]>

Require a configuration option to expand type info

25 Feb 14:04
7298305
Compare
Choose a tag to compare
Require an option to be set on analyzer to expand type info (#27)

Because type expansion is a bit experimental and to avoid letting the presence of TypesInfo in the config control the analyzer behavior, let's require a new option to enable analyzing types.

Match patterns against canonical object name instead of source text

13 Feb 01:49
1396000
Compare
Choose a tag to compare

This release adds a new matching engine based that matches rules on the canonical name of a package attribute or function instead of raw text as it appears in the source code. It also adds support for a mode where a rule is matched based on the canonical name of a type or interface (see the current README for details). This latter mode requires loading type information from dependencies, which could slow down analysis for things like pre-commit hooks, so it is currently disabled by default. Thanks to @pohly for proposing this change, and for the months he put in to implement it in a way that we hope will cause minimal disruption to existing rules. There are some cases where this may new matching engine may break existing behavior, but we believe the number of such cases will be minimal and have chosen not to consider this a major version release. The release also allows scoping a rule to match from a particular package using a regex.