Currently, sord only looks at tags on the method that it's currently parsing. However, YARD is smart enough to be able to determine when a class is overriding a method. Often, the base method will be documented but the subclasses won't need to do that, resulting in sord complaining that the subclassed method has no documentation.
This PR follows YARD's overridden_method to check to see if tags exist on the original method if they don't on the current one.
Currently,
sord
only looks at tags on the method that it's currently parsing. However, YARD is smart enough to be able to determine when a class is overriding a method. Often, the base method will be documented but the subclasses won't need to do that, resulting insord
complaining that the subclassed method has no documentation.This PR follows YARD's
overridden_method
to check to see if tags exist on the original method if they don't on the current one.