Skip to content

Commit

Permalink
Remove bad comments
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>

Add info back

Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
  • Loading branch information
jmle committed Jul 17, 2024
1 parent 01de63d commit 624a324
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (r *ruleEngine) runTaggingRules(ctx context.Context, infoRules []ruleMessag
rs.Errors[rule.RuleID] = err.Error()
}
} else if response.Matched && len(response.Incidents) > 0 {
r.logger.V(5).Info("rule was matched", "ruleID", rule.RuleID)
r.logger.V(5).Info("info rule was matched", "ruleID", rule.RuleID)
tags := map[string]bool{}
for _, tagString := range rule.Perform.Tag {
if strings.Contains(tagString, "{{") && strings.Contains(tagString, "}}") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ type javaCondition struct {
Referenced referenceCondition `yaml:"referenced"`
}

// java.referenced:
// pattern: org.pepito.MiClase
// location: FIELD_DECLARATION
// annotated:
// pattern: org.home.MyAnnotation
// elements:
// - name: url
// value: ...

type referenceCondition struct {
Pattern string `yaml:"pattern"`
Location string `yaml:"location"`
Expand Down

0 comments on commit 624a324

Please sign in to comment.