Class CheckExtraRequiresPassConfig


  • public final class CheckExtraRequiresPassConfig
    extends PassConfig.PassConfigDelegate
    A PassConfig to only run the CheckExtraRequires linter rule. This allows user to select which goog.require imports to be removed, provided by requiresToRemove
    • Constructor Detail

      • CheckExtraRequiresPassConfig

        public CheckExtraRequiresPassConfig​(CompilerOptions options)
    • Method Detail

      • getChecks

        protected PassListBuilder getChecks()
        Description copied from class: PassConfig
        Gets the checking passes to run.

        Checking passes revolve around emitting warnings and errors. They also may include pre-processor passes needed to do error analysis more effectively.

        Clients that only want to analyze code (like IDEs) and not emit code will only run checks and not optimizations.

        Overrides:
        getChecks in class PassConfig.PassConfigDelegate