googlearchive / polylint

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

polylint fails for PRPL apps and with scope variables not present in properties obj #144

Open robdodson opened 8 years ago

robdodson commented 8 years ago

Application structure for reference https://github.com/Polymer/app-drawer-template

/src/my-app.html:66:5
    Property 'routeData' bound to attribute 'data' not found in 'properties' for element 'my-app'
/src/my-app.html:66:5
    Property 'subroute' bound to attribute 'tail' not found in 'properties' for element 'my-app'
/src/my-app.html:106:3
    Property routeData not found in 'properties' for element 'my-app'
/bower_components/app-layout/app-drawer-layout/app-drawer-layout.html:149:3
    Property isAttached not found in 'properties' for element 'app-drawer-layout'
/bower_components/app-layout/app-drawer/app-drawer.html:173:3
    Property isAttached not found in 'properties' for element 'app-drawer'
/bower_components/app-layout/app-header/app-header.html:319:3
    Property isAttached not found in 'properties' for element 'app-header'
/bower_components/app-layout/app-header-layout/app-header-layout.html:108:3
    Property isAttached not found in 'properties' for element 'app-header-layout'
/src/my-app.html:95:11
    <my-view1> is undefined.
/src/my-app.html:96:11
    <my-view2> is undefined.
/src/my-app.html:97:11
    <my-view3> is undefined.
/src/my-app.html:66:5
    Property 'routeData' bound to attribute 'data' not found in 'properties' for element 'my-app'
/src/my-app.html:66:5
    Property 'subroute' bound to attribute 'tail' not found in 'properties' for element 'my-app'
/src/my-app.html:106:3
    Property routeData not found in 'properties' for element 'my-app'
/bower_components/app-layout/app-drawer-layout/app-drawer-layout.html:149:3
    Property isAttached not found in 'properties' for element 'app-drawer-layout'
/bower_components/app-layout/app-drawer/app-drawer.html:173:3
    Property isAttached not found in 'properties' for element 'app-drawer'
/bower_components/app-layout/app-header/app-header.html:319:3
    Property isAttached not found in 'properties' for element 'app-header'
/bower_components/app-layout/app-header-layout/app-header-layout.html:108:3
    Property isAttached not found in 'properties' for element 'app-header-layout'
/src/my-app.html:95:11
    <my-view1> is undefined.
/src/my-app.html:96:11
    <my-view2> is undefined.
/src/my-app.html:97:11
    <my-view3> is undefined.
bendavis78 commented 7 years ago

With regard to undefined the *-view elements, it seems like polymer-cli should respect fragments from polymer.json.

FredKSchott commented 7 years ago

fyi I'll be making sure polylint passes for all polymer-cli templates as a part of integration testing work