Safe Code Cleanup

KissConfig is a Java 17 configuration library with a small public API and documented record-mapping behavior. Cleanup must preserve source-order semantics, secret masking, deterministic reports, and release compatibility.

Public API First

Treat these as public API unless a maintainer explicitly changes the contract:

Do not remove public API directly after a Maven Central release without considering a deprecation cycle. Prefer deprecation first, update documentation, and remove only in a planned compatible release window.

Before deleting anything, search references in all consumer-facing and maintainer-facing surfaces:

rg "SymbolName|methodName" src README.md docs .github PROJECT_CONTEXT.md

Include source, tests, README, docs, examples, architecture notes, GitHub Pages content, release reports, and the AI project manual. A code element with low coverage is not automatically unused.

Required Checks

Run the normal verification and inspect coverage:

mvn -B clean verify
mvn -B test jacoco:report
mvn -B javadoc:javadoc
mvn -B dependency:list -DincludeScope=compile

The compile-scope dependency list must remain none.

Coverage reports are generated at:

target/site/jacoco/jacoco.xml
target/site/jacoco/index.html

Open target/site/jacoco/index.html for human review. Use the XML report for Codecov or Sonar if those services are configured later.

Advanced Profiles

Use optional profiles as evidence, not as automatic deletion authority:

mvn -Pspotbugs verify
mvn -Pdependency-check verify

spotbugs generates SpotBugs reports without making normal CI depend on static-analysis findings. dependency-check runs OWASP Dependency-Check and may download vulnerability data.

No benchmark, PIT mutation-testing, or API-compatibility profile is configured yet. If public API removal is planned, add a japicmp or Revapi baseline against the previous Maven Central release first and keep the initial check non-failing until the baseline is reviewed.

Cleanup Policy

Before Release

Before releasing a cleanup change, confirm: