31 lines
1.6 KiB
Markdown
31 lines
1.6 KiB
Markdown
# PR#133: werkcrappit 0.25.0 with the Structure Views
|
|
|
|
> **WARNING:** This document describes only the change applied in this PR.
|
|
> It may already be outdated once the next PR is merged.
|
|
> Historic PR-documentation is not maintained along with new PRs — treat it as a snapshot, not as current documentation.
|
|
|
|
## Related Links
|
|
|
|
- [werkcrappit RFC 0003](https://git.javagil.de/mi/werkcrappit/src/branch/main/docs/rfcs/0003-structure-view.md), step 3: Werkator as the pilot
|
|
|
|
## The Problem
|
|
|
|
werkcrappit 0.25.0 writes two new pages beside the code city of the nightly `mutation` build:
|
|
`structure.html`, one level diagram per package with cycles, complexity and cohesion,
|
|
and `matrix.html`, a dependency matrix that opens package by package.
|
|
Werkator still uses werkcrappit 0.16.4, which writes neither.
|
|
RFC 0003 names Werkator as the first project to try the pages on, a Kotlin project, before hsadmin-ng.
|
|
|
|
## Non-Goals
|
|
|
|
- No change of Werkator itself, nor of its limits: `maxMutationCrap = 15` and red from 12 stay.
|
|
- No gate on cohesion or coupling; werkcrappit's `maxLcom4` and `maxEfferentCoupling` stay unset.
|
|
|
|
## The Solution
|
|
|
|
- `build.gradle.kts` takes the Gradle plugin `de.javagil.werkcrappit` 0.25.0 instead of 0.16.4; it brings `werkcrappit-pit` of the same version.
|
|
- The nightly build `mutation` runs `mutationCrapCodeCharta` already, so its artifact `build/reports/codecharta/` gets
|
|
`structure.html` and `matrix.html`; `index.html` links both.
|
|
- Werkator serves artifacts with `Content-Security-Policy: sandbox allow-scripts`, so the inline scripts of the pages run.
|
|
- Version 1.38.1, as only the tooling of the nightly build changes.
|