Package com.google.javascript.jscomp
Enum Class CompilerOptions.ConformanceReportingMode
java.lang.Object
java.lang.Enum<CompilerOptions.ConformanceReportingMode>
com.google.javascript.jscomp.CompilerOptions.ConformanceReportingMode
- All Implemented Interfaces:
Serializable
,Comparable<CompilerOptions.ConformanceReportingMode>
,Constable
- Enclosing class:
CompilerOptions
public static enum CompilerOptions.ConformanceReportingMode
extends Enum<CompilerOptions.ConformanceReportingMode>
Whether to respect the library-level non-allowlisted conformance behavior specified in the
conformance config.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsed when running conformance checks at the binary level.Used when running conformance checks at the library level. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE_LIBRARY_LEVEL_BEHAVIOR_SPECIFIED_IN_CONFIG
public static final CompilerOptions.ConformanceReportingMode IGNORE_LIBRARY_LEVEL_BEHAVIOR_SPECIFIED_IN_CONFIGUsed when running conformance checks at the binary level. It ignores the library-level conformance behavior specified in the conformance config and always report the conformance violations. For example, setting this allows the compiler to ignore the "RECORD_ONLY" library-level behavior specified in the config and unconditionally report the non-allowlisted violations when it is running at the binary level. -
RESPECT_LIBRARY_LEVEL_BEHAVIOR_SPECIFIED_IN_CONFIG
public static final CompilerOptions.ConformanceReportingMode RESPECT_LIBRARY_LEVEL_BEHAVIOR_SPECIFIED_IN_CONFIGUsed when running conformance checks at the library level. It respects the library-level conformance behavior specified in the conformance config and only reports the conformance violations according to the behavior. For example, setting this respects the "RECORD_ONLY" library-level behavior specified in the Boq Web configs and only records the violations when it is running at the library level, and also respects the "REPORT_AS_BUILD_ERROR" behavior specified in the global conformance configs to report errors for go/jscp at the library level.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-