Skip to content

feat: implement getFilesWithViolations use case - #177

Merged
matt-dahlgren merged 15 commits into
CA-Visualizer-for-Education:mainfrom
hiuyear:feat/get-files-with-violations
Jul 18, 2026
Merged

feat: implement getFilesWithViolations use case#177
matt-dahlgren merged 15 commits into
CA-Visualizer-for-Education:mainfrom
hiuyear:feat/get-files-with-violations

Conversation

@hiuyear

@hiuyear hiuyear commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

adds the getFilesWithViolations use case on the backend. It returns the list of
files that currently have architecture violations plus a total violation count, so
the frontend can show which files need attention in the violations panel.

Related Issues

Changes

  • added the interactor, input/output boundaries and output data under
    use_case/getFilesWithViolations
  • added the controller and presenter under interface_adapter/getFilesWithViolations
  • added a new GET /analysis/files-with-violations route in routes/analysis.ts
  • added unit tests for the interactor

response is { total_violations, files }, where files is adeduped list of paths.
violation nodes with no file path (e.g. missing nodes) are skipped, so
total_violations can be higher than files.length.

Tests

all tests passed getFilesWithViolations.test.ts

@hiuyear
hiuyear requested a review from matt-dahlgren July 7, 2026 16:26
…iolations

# Conflicts:
#	clean-architecture-visualizer/src/server/routes/analysis.ts

@matt-dahlgren matt-dahlgren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. Please just run formatting checks (with npm run format and npm run lint) to make sure that the CI passes before I can push this branch in.

@hiuyear
hiuyear requested a review from matt-dahlgren July 14, 2026 17:17

@matt-dahlgren matt-dahlgren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job thank you!

@matt-dahlgren
matt-dahlgren merged commit 77009cf into CA-Visualizer-for-Education:main Jul 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: implement getFilesWithViolations use case

2 participants