feature(mermaid-plugin): adds focus highlighting #616
Merged
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.
Description
Also includes the mermaid reporter plugin along with the regular test coverage (it was already 100% covered to start with - and we don't want that to grow less ;-) )
Motivation and Context
@MH4GF has been working on a very nice GitHub action that can add a mermaid report to
your pull request that shows the modules the PR is about. It'd be awesome if they could expand a bit to not only show the modules touched by the PR, but also the immediate context. This is what dependency-cruiser's (existing) focus feature is for.
In the context of a PR it'd however be useful to see which modules are the ones touched by the PR and which are included in the model for context only. This PR adjusts that.
How Has This Been Tested?
Screenshots
Given a dependency-cruiser result which has a
focus
set to one or more modules the output will show these modules highlighted (in green) and the modules in its context in a slightly subdued gray:After
Here a reviewer would see normalize.js has been updated - but interestingly enough not any of the test files that directly include it.
Before
Types of changes
Checklist
📖
⚖️