rodjek/puppet-lint — pull request #149 by dcarley (2012-09-20 21:19:25+00:00)
Title: (#148) Allow class inheritance within the same module

Fixes issue #148

The wording of [11.5 Class Inheritance](http://docs.puppetlabs.com/guides/style_guide.html#class-inheritance) doesn't state that the super-class has to be a direct namespace-parent of the sub-class. Only that they have to exist within the same module (ie. root namespace).

> Inheritance may be used within a module, but must not be used across module namespaces.

This changes the `inherits_across_namespaces` check to compare the first part of the class name and ensure they belong to the same module. Warning message and test names are changed slightly to reflect this behaviour. Additional test is added to confirm this behaviour.