-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🏗 Report unused private fields #14761
🏗 Report unused private fields #14761
Conversation
.eslintrc
Outdated
@@ -45,6 +45,7 @@ | |||
"amphtml-internal/no-global": 0, | |||
"amphtml-internal/no-spread": 2, | |||
"amphtml-internal/query-selector": 2, | |||
"amphtml-internal/unused-private-field": 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, alphabetical order. place below "amphtml-internal/todo-format"
They don't get stripped in v0.js
16190cb
to
33e6bfd
Compare
This seems to have failed lint on master. |
Test flaked, lint isn't the issue. |
@jridgewell In that case, we shouldn't be printing all these warnings during push builds, since there's nothing anyone can do about them there, and they distract from real errors. Can you change this line in
... to ...
... and see if it works? (Also do the same with any other warning-only rules you've introduced, until the majority of them are fixed.) |
See https://travis-ci.org/ampproject/amphtml/jobs/370169393#L660-L1906 for the output currently being printed on |
I'm not sure what format I'm trying to whittle away at the lint warnings. |
* Cleanup AnimationPlayer's private state Part of #14761. * Nit
Lots of methods on AmpDoc and Extensions which were marked as private, but being called from exported functions (and potentially being broken by Closure Compiler optimisations). Marked affected methods as public, and removed redundant exported functions (which existed only to expose the private methods). Issue identified in ampproject#14896. Fixes part of ampproject#14761.
Lots of methods on AmpDoc and Extensions which were marked as private, but being called from exported functions (and potentially being broken by Closure Compiler optimisations). Marked affected methods as public, and removed redundant exported functions (which existed only to expose the private methods). Issue identified in ampproject#14896. Fixes part of ampproject#14761.
Lots of methods on AmpDoc and Extensions which were marked as private, but being called from exported functions (and potentially being broken by Closure Compiler optimisations). Marked affected methods as public, and removed redundant exported functions (which existed only to expose the private methods). Issue identified in ampproject#14896. Fixes part of ampproject#14761.
* Report unused private fields They don't get stripped in v0.js * ABCDEFG... * Use AST to find the members * Find unused methods * Lint
Lots of methods on AmpDoc and Extensions which were marked as private, but being called from exported functions (and potentially being broken by Closure Compiler optimisations). Marked affected methods as public, and removed redundant exported functions (which existed only to expose the private methods). Issue identified in ampproject#14896. Fixes part of ampproject#14761.
Lots of methods on AmpDoc and Extensions which were marked as private, but being called from exported functions (and potentially being broken by Closure Compiler optimisations). Marked affected methods as public, and removed redundant exported functions (which existed only to expose the private methods). Issue identified in #14896. Fixes part of #14761.
Just need an `@restricted` annotation Part of #14761.
They don't get stripped in v0.js
Fixes #14742.