EagleEyeConfigValidator class

Validates an EagleEyeConfig before the analysis starts.

The validator performs two phases:

  1. Structural validation: every rule must have a non-empty, valid filePattern, every dependency pattern must compile, and each rule must define at most one constraint.
  2. Conflict detection: a file in lib/ must not match more than one rule.

Any problem is reported through an InvalidConfigException, which causes the CLI to exit before inspecting imports.

Constructors

EagleEyeConfigValidator({required RegexHelper regexHelper, CheckReporter? onCheck})
Creates a new EagleEyeConfigValidator with the given regexHelper and optional onCheck reporter.

Properties

hashCode → int
The hash code for this object.
no setterinherited
onCheck → CheckReporter?
Optional callback used to report the validation step.
final
regexHelper → RegexHelper
Helper class used to perform regex-based pattern matching.
final
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
validate({required EagleEyeConfig config, required Iterable<String> filePaths}) → void
Validates config against the given filePaths.

Operators

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