Opened 15 years ago

Closed 15 years ago

#413 closed defect (fixed) 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: describe


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

left-anchored position, e.g.


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 15 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.




comment:2 Changed 15 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.