Skip to content

Commit

Permalink
disable dedupe on rules.
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Apr 3, 2024
1 parent 2dfc2ed commit acd2165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion motor/rule_applicator.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ func ApplyRulesToRuleSet(execution *RuleSetExecution) *RuleSetExecutionResult {
if indexResolved != nil && rolodexResolved != nil {
filesProcessed = rolodexResolved.RolodexTotalFiles()
fileSize = rolodexResolved.RolodexFileSize()
ruleResults = *removeDuplicates(&ruleResults, execution, indexResolved)
//ruleResults = *removeDuplicates(&ruleResults, execution, indexResolved)
}

then = time.Since(now).Milliseconds()
Expand Down
3 changes: 2 additions & 1 deletion motor/rule_applicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,8 @@ func TestApplyRules_Length_Description_BadConfig(t *testing.T) {
results := ApplyRulesToRuleSet(rse)
assert.Len(t, results.Errors, 0)
assert.Len(t, results.Results, 1)
assert.Equal(t, "'length' needs 'min' or 'max' (or both) properties being set to operate: minimum property number not met (1)", results.Results[0].Message)
assert.Equal(t, "'length' needs 'min' or 'max' (or both) properties being set to operate: minimum property number not met (1)",
results.Results[0].Message)

}

Expand Down

0 comments on commit acd2165

Please sign in to comment.