Merged
Conversation
* It has both the `edit` and `load` functionalities that support custom linter set ups
There was a problem hiding this comment.
Pull Request Overview
This PR adds the initial version of spmgraph, a Swift Package Manager dependency graph utilities tool. The tool provides visualization, selective testing, and linting capabilities for Package.swift dependency graphs, with the addition of recently designed edit and load functionalities that support custom spmgraph setups.
Key changes:
- Core functionality for visualizing, testing, and linting SPM dependency graphs
- Command-line interface with subcommands for edit, load, tests, lint, and visualize operations
- Configuration system allowing users to create custom lint rules and settings via SPMGraphConfig.swift files
Reviewed Changes
Copilot reviewed 36 out of 38 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| Sources/SPMGraphVisualize/SPMGraphVisualize.swift | Main visualization module with GraphViz integration and PNG generation |
| Sources/SPMGraphTests/SPMGraphTests.swift | Selective testing functionality that maps affected modules based on git changes |
| Sources/SPMGraphLint/SPMGraphLint.swift | Linting engine that validates dependency graph rules and outputs formatted results |
| Sources/SPMGraphExecutable/ | Command-line interface implementation with ArgumentParser for all subcommands |
| Sources/SPMGraphDescriptionInterface/ | Dynamic configuration loading system for user-defined lint rules |
| Sources/SPMGraphConfigSetup/ | Edit and load functionality for managing SPMGraphConfig.swift files |
| Sources/Core/ | Shared utilities including system integration, package loading, and git operations |
| Package.swift | Swift Package Manager configuration defining all targets and dependencies |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
maxheld
approved these changes
Sep 18, 2025
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.
The current spmgraph version, with the addition of the recently designed
editandloadfunctionalities that support custom spmgraph setups