Opened 13 years ago

Closed 13 years ago

#413 closed defect (fixed)

load-sa-rules.pl skips rules whose description lines start with spaces

Reported by: rjl Owned by: rjl
Priority: normal Milestone: 1.0.3
Component: Perl scripts Version: 1.0.2
Severity: normal Keywords: load-sa-rules.pl describe
Cc:

Description

The regex in scan_rule_file() is only looking for the word "describe" in a

left-anchored position, e.g.

/describe..../

Any leading whitespace before the word "describe" causes the rule to be skipped. The script should be made more tolerant of leading whitespace.

Change History (2)

comment:1 Changed 13 years ago by rjl

  • Status changed from new to assigned

Note that the same thing applies to the regex that looks for "score" in a

left-anchored position in scan_score_file(). These regexes need to be adjusted to accept zero or more leading whitespace characters, e.g.

/\s*describe.../

and

/\s*score.../

comment:2 Changed 13 years ago by rjl

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in [1164].

Note: See TracTickets for help on using tickets.