Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Declare result types for analyzers. #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hxtk
Copy link

@hxtk hxtk commented Jul 30, 2022

This change declares each of the analyzers in the analyzers
package to have a result type of
[]github.com/praetorian-inc/gokart/util.Finding.

A test has also been included that runs a minimal *analysis.Pass
through each analyzer's Run function, reflectively determines the
type of the result value, and compares it to the declared result type
of the analyzer.

Resolves #76.

This change declares each of the analyzers in the analyzers
package to have a result type of
`[]github.com/praetorian-inc/gokart/util.Finding`.

A test has also been included that runs a minimal `*analysis.Pass`
through each analyzer's `Run` function, reflectively determines the
type of the result value, and compares it to the declared result type
of the analyzer.

Resolves praetorian-inc#76.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Analyzers do not set ResultType
1 participant