Repository navigation
feat: baseline support for incremental adoption - #42
Closed
gabrielbmoro wants to merge 1 commit into
Closed
gabrielbmoro wants to merge 1 commit into
gabrielbmoro wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds baseline support so a developer can adopt EagleEye step by step on a
codebase that already has architecture violations.
A baseline records the violations that exist today. Future runs suppress the
known violations and fail only on new ones — letting a team freeze legacy
debt and block regressions from day one.
How it works
dart run eagle_eye:maindart run eagle_eye:main --baseline--baselineis aliased by--update-baseline.eagle_eye_baseline.jsonat the project root (committed).filePath + ruleType + importUri— line/column independent, soshifting code around does not resurface known violations.
Changes by layer
lib/model/:baseline_entry.dart,eagle_eye_baseline.dart,exceptions/invalid_baseline_exception.dartlib/analyzer/:baseline_filter.dart(BaselineFilter/BaselineResult)lib/data/: read/write + JSON viaFileHelper,JsonConverter,EagleEyeRepositorylib/eagle_eye_launcher.dart:launchEagleEye({bool updateBaseline})bin/main.dart: parses--baseline/--update-baselinelib/util/logger_helper.dart: addedprintInfoREADME.md,doc/1-getting-started.md,SETUP_PROMPT.md,CHANGELOG.md; version bumped to2.1.0Tests
New unit tests (model + analyzer):
test/model/baseline_entry_test.dart,test/model/eagle_eye_baseline_test.dart,test/analyzer/baseline_filter_test.dart.Also verified end-to-end in a throwaway project: generate → suppress →
new-only failure → stale warning → prune → malformed handling.