TidyConfig class
Resolved configuration for a tidy_imports run.
Configuration is read from tidy_imports.yaml at the project root if it
exists (issue import_sorter#67), otherwise from the tidy_imports: block
in pubspec.yaml. Command-line flags take precedence over both.
Constructors
-
TidyConfig({required bool emojis, required bool noComments, required bool noBlankLines, required bool sortPubspec, required List<
String> ignoredFiles, required List<CustomTier> customTiers}) -
const
- TidyConfig.fromYaml(dynamic config)
-
Builds a config from a parsed YAML node, applying defaults for anything
missing. A
nullnode yields all defaults.factory - TidyConfig.load(String currentPath, YamlMap pubspecYaml)
-
Loads configuration, preferring
tidy_imports.yamlover thetidy_imports:block inpubspec.yaml.factory
Properties
-
customTiers
→ List<
CustomTier> -
final
- emojis → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
ignoredFiles
→ List<
String> -
final
- noBlankLines → bool
-
final
- noComments → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortPubspec → bool
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited