Ticket #413 (closed defect: fixed)

Opened 2 years ago

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

Changed 2 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.../

Changed 2 years ago by rjl

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in [1164].

Note: See TracTickets for help on using tickets.