Skip to content

Commit

Permalink
Merge pull request #3436 from snyk/chore/cleanup-iac-custom-rules-ana…
Browse files Browse the repository at this point in the history
…lytics

chore: cleanup iac custom rules analytics [CFG-1144]
  • Loading branch information
teodora-sandu authored Jul 5, 2022
2 parents 45364fd + f77ee59 commit b3e1de4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 65 deletions.
5 changes: 0 additions & 5 deletions src/cli/commands/test/iac/local-execution/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { FormattedResult, PerformanceAnalyticsKey, RulesOrigin } from './types';
import * as analytics from '../../../../../lib/analytics';
import { calculatePercentage } from './math-utils';
import { computeCustomRulesBundleChecksum } from './file-utils';
import { DescribeOptions, DriftAnalysis } from '../../../../../lib/iac/types';
import { driftctlVersion } from '../../../../../lib/iac/drift/driftctl';
Expand Down Expand Up @@ -60,10 +59,6 @@ export function addIacAnalytics(
opts.rulesOrigin === RulesOrigin.Remote,
);
analytics.add('iac-custom-rules-issues-count', issuesFromCustomRulesCount);
analytics.add(
'iac-custom-rules-issues-percentage',
calculatePercentage(issuesFromCustomRulesCount, totalIssuesCount),
);
analytics.add(
'iac-custom-rules-checksum',
computeCustomRulesBundleChecksum(),
Expand Down
10 changes: 0 additions & 10 deletions src/cli/commands/test/iac/local-execution/math-utils.ts

This file was deleted.

50 changes: 0 additions & 50 deletions test/jest/unit/iac/math-utils.spec.ts

This file was deleted.

0 comments on commit b3e1de4

Please sign in to comment.