blackducksw/ohcount — pull request #39 by wcooley (2014-06-19 21:59:30+00:00)
Title: Add Puppet parameterized classes

This change expands one of the regular expressions used to disambiguate
Puppet and Pascal files ending with ".pp". Without this, parameterized
Puppet classes do not match and end up being detected as Pascal.

I have confirmed that with this change `ohcount` matches everything in my
Puppet tree that it matched with the previous, plus all that it *should* have
matched, save one -- a file with nothing but comments & blank lines.

Running `ohcount -d` on the existing and newly-added files
`test/detect_files/puppet_*.pp` detects them as Puppet files (except for
the *`_annotated`* ones, which aren't actually Puppet anyway); it also does
not erroneously detect anything as Puppet.

I attempted to run `./build tests`, but it core dumps on both master and this branch.