Skip to content
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

fix: add-constant struct tags in anonymous struct literals false positive #954

Merged

Conversation

denisvmedia
Copy link
Collaborator

closes #951

@denisvmedia denisvmedia force-pushed the fix-add-constant-struct-literal-tags branch 2 times, most recently from 1501a5f to 62fa183 Compare December 27, 2023 10:57
rule/add-constant.go Outdated Show resolved Hide resolved
@denisvmedia denisvmedia merged commit f8e122f into mgechev:master Dec 28, 2023
4 checks passed
@denisvmedia denisvmedia deleted the fix-add-constant-struct-literal-tags branch December 28, 2023 23:00
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.

add-constant suggests invalid fix of replacing struct tags with string constants for anonymous structs
1 participant