Registry
Aalexbit-codemod avatar

dotnet-config-pattern-mining

Mine App.config and Web.config patterns for .NET migration assessment; read-only metrics

alexbit-codemod21 executions

  • mining
  • metrics
  • dotnet
  • config
  • web.config
  • migration-assessment
Connect a repo
npx codemod dotnet-config-pattern-mining

dotnet-config-pattern-mining

Read-only mining codemod that detects legacy configuration patterns in App.config, Web.config, and Web.config transform files. No files are written to the target repo.

Registry: private. Use the public dotnet-migration-assessment-bundle to run all miners in one workflow.

What it does

Scans configuration files for patterns that affect .NET Framework → .NET 8 migration planning:

PatternConfig typeRisk
appSettingssettingslow
connectionStringssettingslow
Web.config transformstransformmedium
startup supportedRuntimeruntimemedium
runtime assemblyBindingruntimemedium
entityFramework configefhigh
system.webwebhigh

Metrics

MetricCardinalities
dotnet-config-patternpattern, configType, autoFix, risk, file

Run

Via bundle (recommended):

bash
npx codemod@latest workflow run -w codemods/dotnet-migration-assessment/dotnet-migration-assessment-bundle \
  -t /path/to/dotnet/repo \
  --allow-dirty --no-interactive

Standalone (local monorepo):

bash
npx codemod@latest workflow run -w codemods/dotnet-migration-assessment/dotnet-config-pattern-mining \
  -t /path/to/dotnet/repo \
  --allow-dirty --no-interactive

Testing

bash
npm test

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.