1.6 KiB
1.6 KiB
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, 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 = 15and red from 12 stay. - No gate on cohesion or coupling; werkcrappit's
maxLcom4andmaxEfferentCouplingstay unset.
The Solution
build.gradle.ktstakes the Gradle pluginde.javagil.werkcrappit0.25.0 instead of 0.16.4; it bringswerkcrappit-pitof the same version.- The nightly build
mutationrunsmutationCrapCodeChartaalready, so its artifactbuild/reports/codecharta/getsstructure.htmlandmatrix.html;index.htmllinks 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.