fix(visitor): detect repeated literals inside composite literal elements#46
Conversation
Signed-off-by: Tobias Harnickell <tobias@harnickell.ch>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #46 +/- ##
=========================================
Coverage ? 66.05%
=========================================
Files ? 4
Lines ? 766
Branches ? 0
=========================================
Hits ? 506
Misses ? 227
Partials ? 33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@jgautheron hope you're the right person to look into this with. The CI is using The Go version in CI is long past deprecation, since we have Go From past PRs I see, that the Test / Lint CI did not run at all, which explains why this issue only pops up now If you like, I provide a new PR to update the GO versions in the CI to a supported Go version |
Signed-off-by: Tobias Harnickell <tobias@harnickell.ch>
|
Implemented support for collecting repeated literals inside composite literal elements.
*ast.CompositeLithandling in the AST visitor and extraction logic for:[]string{"x"}map[string]string{"k":"v"}andstruct{...}{Field: "x"}min-occurrencesis reached.Resolves: #44