Question about Copyright and license headers should be defined in all source files

Hi…
first… thanks in advance…
i wonder if there is a way to insert the file name and version in the regular expresion to test the rule of copyright and license headers… i.e:

/// FILE         : <filename>
/// VERSION      : $Revision:$

Hi,

It’s not clear to me what you want to do. Also, which language are we talking about?

 
Ann

Hi G. Ann… Thanks in advance…
The language is C++
Rule: Copyright and license headers should be defined in all source files

I want that every time the rule checks a header it must have the name of the file that it is analyzing

thanks again…

Hi,

Sorry, but you’re not going to be able to ensure that the header contains the name of the enclosing file. There’s no capture sequence available to you.

 
HTH,
Ann