AnalysisOptionsWarningCode class

The error codes used for warnings in analysis options files. The convention for this class is for the name of the error code to indicate the problem that caused the error to be generated and for the error message to explain what is wrong and, when appropriate, how the problem can be corrected.

Inheritance
  • Object
  • ErrorCode
  • AnalysisOptionsWarningCode

Constructors

AnalysisOptionsWarningCode(String name, { String message, { String correction })
Initialize a newly created warning code to have the given name.
const

Properties

errorSeverity ErrorSeverity
The severity of the error.
read-only, override
type ErrorType
The type of the error.
read-only, override
correction → String
The template used to create the correction to be displayed for this error, or null if there is no correction information for this error. The correction should indicate how the user can fix the error.
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
hasPublishedDocs → bool
Return true if diagnostics with this code have documentation for them that has been published.
final, inherited
isUnresolvedIdentifier → bool
Whether this error is caused by an unresolved identifier.
final, inherited
message → String
The template used to create the message to be displayed for this error. The message should indicate what is wrong and why it is wrong.
final, inherited
name → String
The name of the error code.
final, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
uniqueName → String
The unique name of this error code.
read-only, inherited
url → String
Return a URL that can be used to access documentation for diagnostics with this code, or null if there is no published documentation.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Constants

ANALYSIS_OPTION_DEPRECATED → const AnalysisOptionsWarningCode
An error code indicating that the given option is deprecated.
AnalysisOptionsWarningCode('ANALYSIS_OPTION_DEPRECATED', 'The option '{0}' is no longer supported.')
INCLUDE_FILE_NOT_FOUND → const AnalysisOptionsWarningCode
An error code indicating a specified include file could not be found. [...]
AnalysisOptionsWarningCode('INCLUDE_FILE_NOT_FOUND', 'The include file {0} in {1} cannot be found.')
INCLUDED_FILE_WARNING → const AnalysisOptionsWarningCode
An error code indicating a specified include file has a warning. [...]
AnalysisOptionsWarningCode('INCLUDED_FILE_WARNING', 'Warning in the included options file {0}({1}..{2}): {3}')
INVALID_OPTION → const AnalysisOptionsWarningCode
An error code indicating that a plugin is being configured with an invalid value for an option and a detail message is provided.
AnalysisOptionsWarningCode('INVALID_OPTION', 'Invalid option specified for '{0}': {1}')
INVALID_SECTION_FORMAT → const AnalysisOptionsWarningCode
An error code indicating an invalid format for an options file section. [...]
AnalysisOptionsWarningCode('INVALID_SECTION_FORMAT', 'Invalid format for the '{0}' section.')
SPEC_MODE_REMOVED → const AnalysisOptionsWarningCode
An error code indicating that strong-mode: false is has been removed.
AnalysisOptionsWarningCode('SPEC_MODE_REMOVED', 'The option 'strong-mode: false' is no longer supported.', correction: 'It's recommended to remove the 'strong-mode:…
UNRECOGNIZED_ERROR_CODE → const AnalysisOptionsWarningCode
An error code indicating that an unrecognized error code is being used to specify an error filter. [...]
AnalysisOptionsWarningCode('UNRECOGNIZED_ERROR_CODE', ''{0}' isn't a recognized error code.')
An error code indicating that a plugin is being configured with an unsupported option where there is just one legal value. [...]
AnalysisOptionsWarningCode('UNSUPPORTED_OPTION_WITH_LEGAL_VALUE', 'The option '{1}' isn't supported by '{0}'. ' 'Try using the only supported option: '{2}&#…
An error code indicating that a plugin is being configured with an unsupported option and legal options are provided. [...]
AnalysisOptionsWarningCode('UNSUPPORTED_OPTION_WITH_LEGAL_VALUES', 'The option '{1}' isn't supported by '{0}'.', correction: 'Try using one of the supported opt…
UNSUPPORTED_OPTION_WITHOUT_VALUES → const AnalysisOptionsWarningCode
An error code indicating that a plugin is being configured with an unsupported option and legal options are provided. [...]
AnalysisOptionsWarningCode('UNSUPPORTED_OPTION_WITHOUT_VALUES', 'The option '{1}' isn't supported by '{0}'.')
UNSUPPORTED_VALUE → const AnalysisOptionsWarningCode
An error code indicating that an option entry is being configured with an unsupported value. [...]
AnalysisOptionsWarningCode('UNSUPPORTED_VALUE', 'The value '{1}' isn't supported by '{0}'.', correction: 'Try using one of the supported options: {2}.')