Skip to content

Conversation

@randi274
Copy link
Contributor

@randi274 randi274 commented Sep 8, 2025

This PR:

  • Exports ViolationCounts for external use


export type {
ViolationCounts
} from "./output-formats/results/json-run-results-format"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I first hoisted this into output-format.ts, but that felt strange since I wasn't using it in there, but I could do that to make this look cleaner if it's preferable

Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of exporting this from the top level... I'd prefer if we instead switched to use "exports" instead of "main" sort of like we do with our engine-api module. See: https://github.com/forcedotcom/code-analyzer-core/blob/dev/packages/code-analyzer-engine-api/package.json#L13-L16

Then you can put an index.ts inside of the output-formats folder... so that the import over on the MCP tool provider side looks something like

import { ViolationCounts } from "@salesforce/code-analyzer-core/output-formats"

@randi274 randi274 merged commit 8eb8285 into dev Sep 8, 2025
7 checks passed
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.

3 participants