MackySoft.Dotmet
0.4.2
dotnet tool install --global MackySoft.Dotmet --version 0.4.2
dotnet new tool-manifest
dotnet tool install --local MackySoft.Dotmet --version 0.4.2
#tool dotnet:?package=MackySoft.Dotmet&version=0.4.2
nuke :add-package MackySoft.Dotmet --version 0.4.2
dotmet - Deterministic static codebase analysis for .NET, Unity, and Godot
dotmet gives reviewers and AI agents deterministic evidence about a codebase: what changed structurally, where review should start, and whether the analysis is complete enough to trust.
Run dotmet before review to produce a stable JSON report for dependency policy, cycles, complexity, public surface changes, and analysis caveats. dotmet provides review evidence; your repository policy decides whether a change can merge.
What dotmet Reports
- Dependency policy violations and project or namespace cycles.
- Complexity hotspots, including cyclomatic complexity, method and type lines of code (LOC), parameter count, fan-out, and public member count.
- Added, removed, and changed public declarations.
- Current-only inventory or change-aware findings against an explicit local Git revision.
- Structural diff entries for subjects, findings, dependencies, metrics, public surface, rules coverage, and completeness.
- Review priorities, stable finding fingerprints, and completeness signals for repeatable local, CI, and agent decisions.
dotmet analyzes .NET, Unity, and Godot repositories from static files. It does not require the Unity or Godot editor.
Installation
Requirements
- The .NET 8 SDK, or a newer .NET SDK with the .NET 8 runtime installed.
- Windows, macOS, or Linux.
Install dotmet as a global .NET tool:
dotnet tool install --global MackySoft.Dotmet
Update an existing installation:
dotnet tool update --global MackySoft.Dotmet
Confirm that the command is available:
dotmet --version
Quick Start
Run these commands from the repository root.
Prepare repository-local state
dotmet init
dotmet init creates or safely updates .dotmet/.gitignore so .dotmet/local/ stays out of version control. It does not create .dotmet/rules.json or .dotmet/local/.
Analyze the current checkout
dotmet analyze --comparisonMode none --pretty
dotmet writes an analysis report to standard output. When .dotmet/rules.json is absent, the report uses the built-in metric thresholds and has no configured architecture policy.
dotmet automatically selects a target when the repository contains one unambiguous solution, project, Unity project, Godot project, or default target set. Select a target explicitly when discovery is ambiguous:
| Target | Option |
|---|---|
| .NET solution | --solutionPath <path> |
| .NET project, Unity project, or Godot project | --projectPath <path> |
| Aggregate target set | --targetSet <path> |
For example:
dotmet analyze --solutionPath src/MyApp.sln --comparisonMode none --pretty
Before acting on findings, check the reliability fields described in Reading an Analysis Report.
Installing bundled skills
dotmet can install its bundled skills into Codex, Claude Code, or GitHub Copilot. This is optional and independent of code analysis.
The bundled catalog currently contains five skills in the basic category:
| Skill | Purpose | Dependencies |
|---|---|---|
dotmet-analysis |
Interpret analysis reports, identify coverage or input problems, and choose the next kind of work. | None |
dotmet-project-config |
Create or review a target set and rules together as one analysis configuration. | dotmet-analysis, dotmet-rules, dotmet-targets |
dotmet-repair-loop |
Repeat analysis, code or configuration repair, verification, and reanalysis until the work converges. | dotmet-analysis, dotmet-rules, dotmet-targets |
dotmet-rules |
Create or review ownership, classifiers, dependency policies, coverage, and metric thresholds. | None |
dotmet-targets |
Define or review target sets, adapters, target paths, and target granularity. | None |
List the available hosts, categories, skills, and dependencies:
dotmet skills list --pretty
Install the basic category for Codex in the current project:
dotmet skills install --host codex --category basic --scope project
Upgrade skills from 0.2.0
Version 0.3.0 uses a different skills distribution. It does not migrate existing installations automatically.
| 0.2.0 host | 0.3.0 host |
|---|---|
openai |
codex |
claude |
claude-code |
copilot |
github-copilot |
For each 0.2.0 installation, record its host, selector, --scope, --repositoryRoot, and --targetDir before changing the tool. Use those same target options with 0.2.0 to run doctor, then inspect a dry-run uninstall before removing only the dotmet catalog. Select --category basic (or the exact dotmet skill names), not a shared skills root.
# Run these with dotmet 0.2.0 and the recorded target options.
dotmet skills doctor --host openai --category basic --scope project
dotmet skills uninstall --host openai --category basic --scope project --dryRun
dotmet skills uninstall --host openai --category basic --scope project
# After updating to dotmet 0.3.0, use the mapped host and the same target options.
dotmet skills install --host codex --category basic --scope project
dotmet skills doctor --host codex --category basic --scope project
When --targetDir is omitted, --scope user or --scope project resolves the host's canonical target root. Catalog-directory layouts place the dotmet catalog below that root; flat layouts place skills directly below it. An explicit --targetDir is the exact bundle target root and does not gain another catalog directory. If 0.3.0 was installed before the old catalog was removed, do not delete the shared root. In the resolved canonical, flat, user, project, or explicit target, identify ownership of only the five dotmet skill directories and their dotmet metadata; back up or remove those items before installing with the mapped host.
This is a breaking skills change: host literals changed, skills errors use AGENT_DISTRIBUTION_* instead of SKILL_*, and packaged resources moved from skills/ to agent-distribution/. The seven skills commands (list, export, install, update, uninstall, prune, and doctor) and JSON status/verdict with exit codes 0 or 1 remain available.
- Use
--categoryto select a category or--skillto select exact skill names. - Pass multiple skill names as a comma-separated list, such as
--skill dotmet-analysis,dotmet-rules. - dotmet resolves transitive skill dependencies before export, install, update, uninstall, prune, or doctor operations.
skills export,install,update,uninstall,prune, anddoctorrequire at least one--categoryor--skillselector.--hostaccepts onlycodex,claude-code, orgithub-copilot.- Codex and GitHub Copilot use a catalog directory below their skills root. Claude Code installs skills directly below its skills root.
--targetDiralways names the exact bundle target root; dotmet does not append the catalog ID to an explicitly supplied path.
Every skills command writes a JSON skills report to standard output.
A passing skills report means the distribution operation succeeded; it says nothing about code analysis or merge eligibility. The report uses contractVersion: 1, reportKind: "skills", a command name, status, verdict, payload, and any operation summary.
Reading an Analysis Report
Read fields in decision order
| Fields | What they tell you |
|---|---|
contractVersion, reportKind, engineVersion |
Which JSON contract and dotmet version produced the report. |
status, verdict |
Whether dotmet produced the requested report and the result that CI or an agent should interpret. |
analysisCompleteness, partialFailures, errors |
Whether the analysis is complete enough to trust. |
target, comparison |
What was analyzed and which Git revision was used as the comparison baseline. |
execution.rulesCoverage |
Whether configured architecture rules cover the selected target. |
execution.filters |
How much review content is visible or omitted. |
summary.topReviewTargets, findings, symbolResults |
Where review should start and the evidence behind each item. |
An abbreviated illustration looks like this. <installed-version> is replaced by the running tool's version, and a complete analysis report contains additional required fields.
{
"contractVersion": 1,
"reportKind": "analysis",
"engineVersion": "<installed-version>",
"status": "ok",
"verdict": "pass",
"analysisCompleteness": "full",
"summary": {
"topReviewTargets": []
},
"findings": [],
"partialFailures": [],
"errors": []
}
Read verdict as follows:
verdict |
Meaning |
|---|---|
pass |
The report has no condition that prevents a clean result. |
warn |
The report is usable, but review findings or reduced confidence require attention. |
fail |
A finding, policy, validation rule, or operation failed. |
error |
dotmet could not complete the requested report. |
For JSON reports with status and verdict, exit codes follow this mapping:
status |
verdict |
Exit code |
|---|---|---|
ok |
pass |
0 |
ok |
warn |
0 |
ok |
fail |
1 |
error |
error |
1 |
Exit code 0 does not always mean a clean pass, and exit code 1 may still accompany a usable status = "ok" JSON report. Always read status and verdict when a JSON report is produced. For analysis reports, also read completeness and coverage regardless of the process exit code.
Treat an analysis as a trustworthy clean pass only when:
status = "ok"andverdict = "pass";analysisCompleteness = "full";- empty
partialFailuresanderrors; - no
summary.reviewHints[].code = "CHECK_ANALYSIS_COMPLETENESS"; execution.rulesCoverage.state = "full"when architecture rules are configured;- no omitted findings, symbol results, top review targets, or fail-impact findings when filters are used.
verdictImpact = "none" findings may remain in a pass report as inventory signals.
Write and filter reports
Use --outputPath when CI or an agent should read the report from a file:
dotmet analyze --comparisonMode none --outputPath artifacts/dotmet-analysis.json --pretty
Relative output paths work on Windows, macOS, and Linux. Parent directories are created when necessary.
--changeScope, --pathPrefix, --category, --ruleId, --verdictImpact, --minReviewPriority, and result limits shape the visible report; they do not narrow the analysis itself.
execution.filtersrecords visible and omitted counts.summary.findingCountsandsummary.metricsOverviewremain unfiltered safety fields.- A report with hidden review content cannot produce
verdict = "pass".
Comparing Changes
Produce change-aware review findings
Compare the current checkout with an explicit local Git revision:
dotmet analyze --solutionPath src/MyApp.sln --comparisonMode git --comparisonBase origin/master --pretty
--comparisonBase must resolve locally. dotmet does not fetch or mutate Git references.
Inspect structural diff entries
dotmet diff --solutionPath src/MyApp.sln --comparisonBase origin/master --pretty
dotmet diff reports structural entries, not textual patches or hunks. A passing diff verdict means dotmet produced a reliable structural diff; review and merge decisions should use the analysis report and repository policy.
In a diff report, read comparison, summary, and entries together with partialFailures and errors.
If Git comparison cannot be completed, dotmet returns a comparison error report instead of silently falling back to current-only analysis.
Selecting Targets
| Target | What dotmet reads | Example |
|---|---|---|
| .NET solution | Solution, projects, source files, restore assets, and analyzer configuration. | dotmet analyze --solutionPath src/MyApp.sln |
| .NET project | Project file, source files, restore assets, and analyzer configuration. | dotmet analyze --projectPath src/MyApp/MyApp.csproj |
| .NET directory | One .sln, .slnx, or .csproj discovered in the directory. |
dotmet analyze --projectPath src/MyApp |
| Unity project root | C# sources, .asmdef, predefined assemblies, and Unity Package Manager manifest and lock files. |
dotmet analyze --projectPath UnityProject |
| Godot project root | project.godot, C# sources, and GDScript inputs. |
dotmet analyze --projectPath GodotProject |
| Target set | Child .NET, Unity, or Godot targets analyzed as one aggregate target. | dotmet analyze |
The default --targetKind auto selects an adapter from the resolved target. A Godot directory containing project.godot is detected automatically. Use an explicit --targetKind only when the command must require one adapter kind.
Selecting a .csproj, .sln, or .slnx inside a Godot repository uses the .NET adapter. Select the Godot project root to include project.godot and GDScript inputs.
Target sets
The default aggregate target file is <repositoryRoot>/.dotmet/targets.json. When it exists and no explicit target is supplied, analyze, diff, and doctor use it.
A target set contains a stable aggregate id and child targets with their own id, adapter, and repository-relative solutionPath or projectPath.
{
"contractVersion": "dotmet.targetSet@1",
"id": "product",
"targets": [
{
"id": "dotnet-main",
"adapter": "dotnet",
"solutionPath": "Product.slnx"
},
{
"id": "unity-game",
"adapter": "unity",
"projectPath": "src/Product.Unity"
}
]
}
Use --targetSet <path> only for a non-default target set. It is mutually exclusive with --solutionPath, --projectPath, and an explicit --targetKind dotnet|unity|godot.
Unity and Godot analysis boundaries
Unity and Godot support is static. Source subjects come from repository files. Runtime scene trees, serialized asset semantics, and generated project files do not define analysis subjects. Required dependency resolution can use validated Unity package cache content and installed Editor assemblies without launching the Editor.
For Unity Package Manager dependencies, dotmet reads both Packages/manifest.json and Packages/packages-lock.json. A plain version literal can be resolved as a Unity built-in package when the lock file records that source.
Registry and built-in packages with fingerprint-named cache directories require an exact manifest name/version match and a unique candidate. Git packages with fingerprint-named directories require the lock's Git commit to match Library/PackageManager/ProjectCache, together with its resolved directory and the package manifest fingerprint. Package GUID references are resolved within this validated content and must be unique across primary sources and package cache content. Constraints on package assemblies outside the required dependency graph do not reduce analysis completeness.
For required Editor DLLs, dotmet checks Library/PackageManager/projectResolution.json against the project path and ProjectSettings/ProjectVersion.txt. It searches the recorded Editor's direct managed and build pipeline directories, including both Managed / Tools/BuildPipeline and Resources layouts, validates managed assembly identities, and rejects conflicting DLL contents. Required DLL dependencies are also loaded; dependencies absent from both the runtime references and the recorded Editor produce a completeness blocker. Missing or inconsistent evidence leaves the reference unresolved. Reports identify external references with pathBase: "unityEditor" (or resolvedPathBase for reference outcomes), paths relative to the Editor data directory (Contents on macOS), and version/content provenance. Repository inputs use "repository". DLL contents participate in cache identity and are used by semantic analysis; Editor installation paths are not exposed in reports.
Unity static analysis evaluates assembly versionDefines from verified package manifests and the recorded Unity version, and applies those symbols and allowUnsafeCode to C# analysis. Supported version expressions include package presence, minimum versions, exact versions, and bounded intervals. Unknown conditional symbols, unsupported expressions, or additional compiler inputs whose defines have not been evaluated produce semantic-analysis diagnostics. An absent package does not by itself prove that its integration symbol is undefined when other compiler inputs can define it.
Response files, nonempty PlayerSettings compiler settings, and Build Profile assets can supply additional compilation conditions. dotmet reports these inputs as unevaluated instead of selecting a Unity build configuration. Build Profile assets under Assets are recognized by their serialized Unity type, including profiles moved out of the default directory.
Missing named assembly references are marked inactiveByProof only when the declaring assembly and its source dependencies compile without them using established conditions and a restricted reference set. Otherwise the reference remains required or unknownRequired, and analysis stays incomplete. The report's requirementEvidence explains the decision. This proof excludes dotmet's own dependencies and does not use generated Unity project files, build results, or a package-specific exception list. Compilation inputs and decisions participate in cache identity.
Configuring Rules
Rules are optional. Add .dotmet/rules.json when the repository needs architecture policy or metric thresholds stricter than the built-in standard.
Create and validate a rules file
dotmet rules create --kind template --outputPath .dotmet/rules.json --pretty
dotmet rules validate .dotmet/rules.json --repositoryRoot . --pretty
rules validate checks the rules document without loading a target. Run doctor or analyze afterward to confirm how the rules apply to real subjects and dependencies.
analyze, diff, and doctor resolve rules in this order:
- the path passed to
--rulesPath; <repositoryRoot>/.dotmet/rules.json;- built-in standard metric thresholds.
An invalid explicit or discovered rules file is not replaced with built-in rules.
Rules model
| Part | Purpose |
|---|---|
subjects |
Defines the owned improvement scope and optional external matcher refinements. |
classifiers |
Assigns codeKind, domain, and layer labels to owned subjects and dependency-policy endpoints. |
policies.dependencies |
Defines allow-only dependency directions with owned, external, and optional classifier selectors. |
coverage |
Requires ownership and classifier coverage for the selected target. |
thresholds |
Sets metric limits; omitted keys inherit the built-in standard. |
dotmet reads more source than it necessarily treats as an improvement target:
| Role | Source | Ordinary design findings | Dependency-policy role |
|---|---|---|---|
| Owned | Local source this repository is responsible for improving. | Reported. | Owned source or target. |
| Unowned support | Local source loaded for symbol resolution, dependency evidence, or completeness. | Not reported. | Can act as an external-like target. |
| Resolved external | A non-local dependency resolved by an adapter. | Not reported. | External target. |
When no architecture policy is configured and subjects.owned is empty, the adapter's primary and support classifications provide the default roles. Rules that contain a non-empty subjects.external, any classifier rule, a dependency policy, or a localSubjectsMustBeOwned matcher must also contain a non-empty subjects.owned; otherwise validation reports RULES_ARCHITECTURE_POLICY_WITHOUT_OWNED_SUBJECTS.
When subjects.owned is non-empty, its matchers are the final direct-ownership authority: matching support source is promoted to owned, and non-matching primary source becomes support. dotmet may still include project or namespace ancestors in the effective ordinary-finding scope when they aggregate owned descendants.
Resolved external references and unowned support targets can match subject: "external" without being listed in subjects.external. Use subjects.external only for an explicit matcher refinement, and keep it disjoint from subjects.owned. Support targets remain part of the local inventory and are not counted as resolved external subjects.
When owned code has a prohibited dependency on support or external code, the finding is anchored on the owned source. Target loading failures, rules validation failures, coverage gaps, and missing inputs remain diagnostics or completeness signals rather than ordinary design findings.
A validated architecture example
This example owns code in the MyApp namespace, allows Application to depend on Domain, prevents Domain from depending on Application, and permits System.Text.Json as a classified external dependency.
{
"subjects": {
"owned": [
{ "matches": [{ "namespacePrefix": ["MyApp"] }] }
],
"external": []
},
"classifiers": {
"codeKind": [],
"domain": [
{ "label": "app", "matches": [{ "namespacePrefix": ["MyApp"] }] },
{ "label": "json", "matches": [{ "namespacePrefix": ["System.Text.Json"] }] }
],
"layer": [
{
"label": "application",
"matches": [{ "namespacePrefix": ["MyApp.Application"] }]
},
{
"label": "domain",
"matches": [{ "namespacePrefix": ["MyApp.Domain"] }]
}
]
},
"policies": {
"dependencies": [
{
"from": { "domain": ["app"], "layer": ["application"] },
"allow": [
{ "domain": ["app"], "layer": ["application", "domain"] },
{ "subject": "external", "domain": ["json"] }
]
},
{
"from": { "domain": ["app"], "layer": ["domain"] },
"allow": [
{ "domain": ["app"], "layer": ["domain"] },
{ "subject": "external", "domain": ["json"] }
]
}
]
},
"coverage": {
"ownedSubjectsMustClassify": ["domain", "layer"],
"localSubjectsMustBeOwned": [
{
"matches": [
{
"subjectKindExact": [
"namespace", "type", "method", "constructor", "property", "field", "event"
],
"pathPrefix": ["src/MyApp/"]
}
]
}
]
},
"thresholds": {}
}
The example directly owns .NET namespace, type, and member subjects and does not require the project subject itself to match subjects.owned. The project can still participate in aggregate findings as an ancestor of owned code.
Every .NET source subject under src/MyApp/ must belong to the MyApp namespace. A subject under that path with another namespace appears as an ownership coverage failure. The example does not enforce a one-to-one mapping between folders and namespaces; add combined path and namespace matchers when that is part of the repository's design contract.
Matching and dependency-policy semantics
- Rules support
projectExact,assemblyExact,tagExact,subjectKindExact,namespaceExact,namespacePrefix,pathExact,pathPrefix,pathSegment, andpathSuffix. - Entries in
matches[]are OR alternatives. Fields inside one match clause are AND conditions, and values inside one field are OR alternatives. - Matching is ordinal and case-sensitive. Namespace and path prefixes respect segment boundaries.
- A classifier uses the most specific matching rule. A tie at the same specificity is ambiguous and becomes a coverage failure.
- Dependency policy is allow-only. When multiple
fromrules match, theirallowentries are combined. subjectacceptsownedorexternal.*means any classified label, and$samein anallowselector means the source's label on that axis.- Policy selectors may use only axes listed in
coverage.ownedSubjectsMustClassify.
Rules coverage
| State | Meaning |
|---|---|
notConfigured |
Architecture policy is absent; built-in or custom metric thresholds may still apply. |
full |
Required ownership and classifier coverage is complete, and every owned dependency edge is evaluated by policy. |
partial |
Required ownership, classification, or dependency-policy coverage is incomplete. |
none |
Configured architecture policy has no effective owned scope or policy application for the selected target. |
partial and none prevent a clean pass.
full means the configured policy was applied completely. It does not mean every dependency was allowed; a policy violation can produce verdict = "fail" while rules coverage remains full.
Coverage is split by responsibility:
execution.rulesCoverage.localInventoryreports local, owned, resolved external, and unowned subject counts.execution.rulesCoverage.policyCoveragereports required classifiers, classifier coverage, dependency edge evaluation, and policy application.
Configured architecture policy reports a coverage failure when:
- a local subject matched by
localSubjectsMustBeOwnedis not owned; - an owned subject lacks a required classifier or matches equally specific classifier rules;
- an owned dependency edge cannot be evaluated;
- no
fromdependency policy applies to an owned dependency source.
Metric thresholds
Thresholds are inclusive upper bounds. A value equal to the threshold does not produce a finding; a greater value produces a review signal with verdictImpact = "warn" by default. Metric warnings are review material: a metric value alone does not establish a contract violation or unfinished work, and zero warnings is not a completion criterion unless repository policy explicitly requires it.
| Metric | Built-in dotmet.standard@1 |
|---|---|
cyclomaticComplexity |
15 |
methodLoc |
60 |
parameterCount |
10 |
fanOut |
40 |
typeLoc |
600 |
publicMemberCount |
50 |
Each repository threshold may be any integer from 0 through 2147483647, whether it is lower or higher than the built-in value. Values outside that range produce RULES_THRESHOLD_VALUE_INVALID; omitted metrics inherit the built-in value.
Rules authoring commands
| Command | Use |
|---|---|
dotmet rules create --kind template |
Write an empty editing skeleton. |
dotmet rules create --kind standard |
Write the built-in metric thresholds explicitly. |
dotmet rules schema |
Write the rules JSON Schema. |
dotmet rules validate <rulesPath> |
Validate one rules file without loading a target. |
dotmet rules graph <rulesPath> |
Render dependency policy as a Mermaid flowchart. |
dotmet doctor |
Diagnose target-aware rules application. |
dotmet analyze |
Evaluate rules against the selected target. |
Rules safety behavior:
- Invalid rules produce
RULES_CONFIGURATION_INVALIDinanalyze,diff, anddoctor; dotmet does not fall back to built-in thresholds. - Rules stability is reported through
execution.assuranceConfig.rules. Changed or unknown stability prevents a clean pass. - Rules files define architecture policy and metric thresholds. Review suppressions, exception lists, and baseline-as-pass workflows belong outside
.dotmet/rules.json.
Restore, Cache, and Diagnostics
Restore
- For .NET targets,
analyzeanddiffrestore the selected workspace by default. - Git comparison may restore both the current and comparison-baseline workspaces.
- In CI, use
--restoreMode noneor--no-restoreonly when restore assets already exist for every current and comparison-baseline .NET workspace that dotmet will load. - Restore execution appears in
execution.restore.currentandexecution.restore.before. - Restore failures use
CURRENT_RESTORE_FAILEDorBEFORE_RESTORE_FAILED. - Missing restore assets with restore disabled use
WORKSPACE_RESTORE_INCOMPLETE.
doctor diagnoses restore readiness but does not run restore and does not accept --restoreMode.
Cache
analyzeanddiffuse.dotmet/local/cache/with--cacheMode readWriteby default.- Cache entries contain analysis snapshots and build metadata; final reports, findings, rules evaluation, and classifier matching are recomputed.
- Content digests turn stale, incomplete, or corrupt entries into cache misses. Cache state does not change findings, fingerprints, rules evaluation, or verdict semantics for the same effective input.
- If
.dotmet/local/is not ignored, dotmet skips cache writes and recordsLOCAL_STATE_IGNORE_MISSING. - Delete
.dotmet/local/cache/at any time, or use--cacheMode offto build a report directly from workspace inputs.
Diagnose setup before relying on a report
dotmet doctor --solutionPath src/MyApp.sln --comparisonMode git --comparisonBase origin/master --pretty
doctor checks target discovery, workspace loading, rules, restore readiness, generated code, and Git comparison prerequisites.
Command Reference
Output formats
| Output | Commands |
|---|---|
| JSON | analyze, diff, doctor, init, rules create, rules schema, rules validate, codes list, codes describe, and all skills commands |
| Mermaid | rules graph |
| Text | --help and --version |
Commands write their document to standard output by default. Commands that accept --outputPath write the document to that file and leave standard output empty. codes and skills commands always write JSON to standard output.
Diagnostics that are not part of a document are written to standard error. Command-line parsing errors and failed rules graph invocations may return only diagnostic text and no output document.
Commands
| Command | Use |
|---|---|
dotmet init |
Prepare or check repository-local state. |
dotmet analyze |
Produce current-only or change-aware review findings. |
dotmet diff |
Produce structural diff entries against a local Git revision. |
dotmet doctor |
Diagnose analysis prerequisites. |
dotmet rules create |
Write a rules document. |
dotmet rules validate <rulesPath> |
Validate one rules file. |
dotmet rules schema |
Write the rules JSON Schema. |
dotmet rules graph <rulesPath> |
Render dependency policy as Mermaid. |
dotmet codes list |
List reserved machine-readable codes and verdict semantics. |
dotmet codes describe <code> |
Describe one reserved code. |
dotmet skills list/export/install/update/uninstall/prune/doctor |
Manage bundled skills by host, category, or exact skill name. |
Target and execution options
| Option | Commands | Use |
|---|---|---|
--solutionPath <path> |
analyze, diff, doctor |
Select a .sln or .slnx target. |
--projectPath <path> |
analyze, diff, doctor |
Select a .csproj, .NET directory, Unity root, or Godot root. |
--targetSet <path> |
analyze, diff, doctor |
Select a non-default aggregate target set. |
--targetKind auto\|dotnet\|unity\|godot |
analyze, diff, doctor |
Auto-detect or require one adapter kind. |
--rulesPath <path> |
analyze, diff, doctor |
Use an explicit rules file. |
--comparisonMode none\|git |
analyze, doctor |
Run or diagnose current-only or Git comparison mode. |
--comparisonBase <rev> |
analyze, diff, doctor |
Select an available local Git revision. |
--cacheMode off\|read\|write\|readWrite |
analyze, diff |
Control snapshot cache access. |
--restoreMode auto\|none |
analyze, diff |
Control restore before workspace loading. |
--no-restore |
analyze, diff |
Alias for --restoreMode none. |
--outputPath <path> |
analyze, diff, doctor, init, rules create, rules schema, rules validate, rules graph |
Write command output to a file. |
--pretty |
JSON-producing commands | Write indented JSON. |
Analysis report filters
These options apply only to analyze and change the reported review items rather than the analysis scope.
| Option | Use |
|---|---|
--changeScope all\|changed\|introduced |
Select review items by Git change state. |
--category <category> |
Select finding categories. |
--ruleId <ruleId> |
Select finding rule IDs. |
--verdictImpact fail\|warn\|none |
Select findings by verdict impact. |
--pathPrefix <path> |
Select items by repository-relative path prefix. |
--minReviewPriority low\|medium\|high\|critical |
Set the minimum visible review priority. |
--maxFindings <count> |
Limit visible findings after deterministic sorting. |
--maxSymbolResults <count> |
Limit visible symbol results after deterministic sorting. |
--maxReviewTargets <count> |
Limit visible top review targets after deterministic sorting. |
Run dotmet --help or dotmet <command> --help for the complete option list.
Support
Use GitHub Issues for bug reports, release questions, and feature requests.
Author
Created and maintained by Hiroya Aramaki (Makihiro).
License
dotmet is released under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.