EagleEyeConfigItem class
Represents a single rule item in the Eagle Eye configuration file.
Each EagleEyeConfigItem defines dependency constraints for files that match a specific filePattern. These constraints control which imports are allowed or forbidden within that scope.
Configuration behavior:
- If dependenciesAllowed is
false, the file cannot import anything. - If forbiddenDependencies is provided, the file cannot import any module matching those patterns.
- If exclusiveDependencies is provided, the file can only import modules that match those patterns.
Constructors
-
EagleEyeConfigItem({bool? dependenciesAllowed, List<
String> ? forbiddenDependencies, List<String> ? exclusiveDependencies, required String filePattern}) - Creates a new EagleEyeConfigItem instance with the given parameters.
-
EagleEyeConfigItem.fromJson(Map<
String, dynamic> json) -
Maps a single JSON object into an EagleEyeConfigItem.
factory
Properties
- dependenciesAllowed ↔ bool?
-
If
false, the file should not contain any import statements.getter/setter pair -
exclusiveDependencies
↔ List<
String> ? -
List of regex or wildcard patterns representing allowed imports.
getter/setter pair
- filePattern ↔ String
-
Pattern used to identify which files this rule applies to.
getter/setter pair
-
forbiddenDependencies
↔ List<
String> ? -
List of regex or wildcard patterns representing forbidden imports.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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