Files
werkator/docs/prs/2026-10-09-PR#133-werkcrappit-structure-views.md
claude-code 8c334e7362
werkator build succeeded after 02:50
werkator/deploy build succeeded after 00:08
werkcrappit 0.25.0 with the structure views (v1.38.1) (#133)
Co-authored-by: claude-code <claude-code@javagil.de>
2026-10-09 22:05:26 +02:00

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.

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.