With this patch we can now add check lines outside of the function.
For now we match only attributes at the end of the module, but other
values can be added later as well.
Haven't actually tried it yet, but adding checks for other values
should be as easy as adding appropriate regexps in nameless_values list.
I need to work a little bit more on files that have multiple check lines, but the general approach should remain the same (if everyone agrees).