Have the linter take an optional directory argument
Measure size of inline widget *content*, not widget wrapper node

The height of an 'inline' element is pretty much meaningless.