EagleEyeLauncher class

The main launcher for Eagle Eye architecture validation.

EagleEyeLauncher coordinates the analysis of a Dart project using the Eagle Eye tool. It performs the following steps:

  1. Loads the configuration file (eagle_eye_config.json) via EagleEyeRepository.
  2. Collects all Dart files in the lib/ folder.
  3. Determines the application name from pubspec.yaml.
  4. Uses EagleEyeMatcher to find which rules apply to each file.
  5. Uses EagleEyeVisitor to analyze imports and collect violations.
  6. Logs errors using LoggerHelper and exits with a non-zero code if violations exist.

Constructors

EagleEyeLauncher()
Initializes the launcher with the default repository, file helper, and JSON converter.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

launchEagleEye() Future<void>
Launches the Eagle Eye analysis on the current Dart project.
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