Skip to content

Prevent analyzers from reporting on methods #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

JoelSpeed
Copy link
Contributor

@JoelSpeed JoelSpeed commented Dec 17, 2024

A side effect of the refactoring in #11, is that *ast.Field also accounts for fields in function signatures, so we started getting some false positives.

This PR adds a new tests to make sure that linters that would otherwise report on functions, do not.
Reverting some of the refactoring to iterate over structs again, to avoid iterating over function signatures.

@JoelSpeed JoelSpeed force-pushed the fix-reporting-on-methods branch from 0ec5b5d to 6173f51 Compare December 17, 2024 17:56
@JoelSpeed JoelSpeed force-pushed the fix-reporting-on-methods branch from 0115764 to c750a02 Compare December 17, 2024 21:07
@JoelSpeed JoelSpeed merged commit b52f67e into main Dec 17, 2024
2 checks passed
@JoelSpeed JoelSpeed deleted the fix-reporting-on-methods branch December 17, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant