googlearchive / polylint

Lint polymer!
BSD 3-Clause "New" or "Revised" License
116 stars 19 forks source link

warn when an element is not imported directly #122

Open 43081j opened 8 years ago

43081j commented 8 years ago

Currently it seems that if you have two elements using the same element, linting will pass if only one imports the element.

So for example:

But here, if a uses and does not import paper-button, linting will still pass fine because b has imported it into the tree still.

We should really warn if a doesn't import it directly (its self), because it means if we use this element without importing b one day, it will be wrong.

All used elements should be defined as imports in each module, should they not?