Skip to content

Conversation

@MuneebUllahKhan222
Copy link
Contributor

Description:

This PR adds analysisInfo in detector.Result struct of tableau detector to support tableau analyzer.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team January 29, 2026 11:41
@MuneebUllahKhan222 MuneebUllahKhan222 requested a review from a team as a code owner January 29, 2026 11:41
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.


ignoreOpts := []cmp.Option{
cmpopts.IgnoreFields(detectors.Result{}, "Raw", "RawV2", "verificationError", "ExtraData"),
cmpopts.IgnoreFields(detectors.Result{}, "Raw", "RawV2", "verificationError", "ExtraData", "AnalysisInfo"),
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test ignores AnalysisInfo field rendering expected values useless

Medium Severity

The test adds expected AnalysisInfo values (lines 72-76) but then adds AnalysisInfo to cmpopts.IgnoreFields (line 262), which means the comparison will never verify these values. The expected AnalysisInfo is effectively dead code that provides false confidence the feature is tested. Other integration tests like dockerhub_integration_test.go either test AnalysisInfo properly (without ignoring it) or don't include expected values at all.

Additional Locations (1)

Fix in Cursor Fix in Web

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