File tree Expand file tree Collapse file tree
packages/code-analyzer-core/src/suppressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,9 +29,14 @@ export type BulkSuppressionResult = {
2929
3030/**
3131 * Applies bulk suppressions to violations based on config, updating quota tracking
32+ *
33+ * IMPORTANT: This function mutates the quotas Map as a side effect. The Map tracks
34+ * suppression counts across multiple calls and should be shared across all engines
35+ * in a single analysis run to maintain accurate quota limits.
36+ *
3237 * @param violations List of violations to process
3338 * @param bulkConfig Bulk suppression configuration from YAML
34- * @param quotas Shared quota tracker (mutated by this function)
39+ * @param quotas Shared quota tracker (MUTATED by this function - maintains state across calls )
3540 * @param workspaceRoot Root directory for resolving relative paths
3641 * @returns Object containing unsuppressed violations and count of suppressions applied
3742 */
You can’t perform that action at this time.
0 commit comments