Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a suggested fix to canonicalize (i.e., merge and sort) Clos…
…ure imports (i.e., goog.require, goog.requireType and goog.forwardDeclare) according to the style guide. The bulk of the logic is in a new RequiresFixer class, which is intended to be reused in CheckRequiresAndProvidesSorted to determine whether a fix is required using the same logic. This will be done in a followup refactor. As a result, CheckRequiresAndProvidesSorted and ErrorToFixMapper currently disagree on whether a fix is necessary, which requires some tests to be checked in disabled. However, they have been observed to pass in the fully refactored version. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=235972853
- Loading branch information