AI Slop Code RIsk Monitor

xunit/xunit

xUnit.net is a free, open source, community-focused unit testing tool for .NET.

5.1 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for xunit/xunit, a C# project with 4,611 GitHub stars. SynthScan examined 204,890 lines of code across 1660 source files, recording 893 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 5.1 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

5.1
Adjusted Signal
5.1
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
4.6K
Stars
C#
Language
204.9K
Lines of Code
1.7K
Files
893
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.7/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 868 finding(s).

Hallucinated Dependency & Supply Chain Risk 3.1/100 · LOW

Are imports declared and package/API names verified? 13 finding(s).

Agent Over-Engineering Ratio 1.4/100 · LOW

Are wrappers, guards, and repeated structures necessary? 12 finding(s).

PR Review Velocity Impact 23.0/100 · LOW

Which changes need focused human review? 893 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 13HIGH 12MEDIUM 0LOW 868

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 893 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block868 hits · 850 pts
SeverityFileLineSnippetContext
LOWsrc/xunit.v3.core.tests/Runners/TestRunnerTests.cs241 // InvokeTestCOMMENT
LOWsrc/xunit.v3.core.tests/Runners/TestRunnerTests.cs281 msg => Assert.Equal("OnTestClassConstructionStarting", msg),COMMENT
LOWsrc/xunit.v3.core.tests/Runners/TestRunnerTests.cs421 Assert.Collection(COMMENT
LOWsrc/xunit.v3.core.tests/Runners/TestRunnerTests.cs461 // CreateTestClassInstanceCOMMENT
LOW…t.v3.common.aot/Extensions/ReflectionExtensions_aot.cs41 [typeof(decimal?)] = null,COMMENT
LOW…t.v3.common.aot/Extensions/ReflectionExtensions_aot.cs61 /// <item><see langword="char" /></item>COMMENT
LOW…common.aot/Configuration/RegisteredRunnerConfig_aot.cs21 /// <summary>COMMENT
LOW…common.aot/Configuration/RegisteredRunnerConfig_aot.cs61 }COMMENT
LOW…lity/Registration/CodeGenTestCollectionRegistration.cs41 }COMMENT
LOW…lity/Registration/CodeGenTestCollectionRegistration.cs61 /// </summary>COMMENT
LOW…lity/Registration/CodeGenTestCollectionRegistration.cs81 if (factory != null)COMMENT
LOW…rutility/Registration/CodeGenTestMethodRegistration.cs21 readonly string methodName;COMMENT
LOWsrc/xunit.v3.generatorutility/Traits/TraitGenerator.cs61 /// <param name="result">The generator result</param>COMMENT
LOWsrc/xunit.v3.generatorutility/Traits/TraitGenerator.cs81 /// <param name="testCollectionName">The test collection name (will be <see langword="null"/> for type-based collectioCOMMENT
LOWsrc/xunit.v3.generatorutility/Traits/TraitGenerator.cs101 /// <remarks>COMMENT
LOW….v3.generatorutility/TestMethod/TheoryMethodDetails.cs181 /// Gets the factory for method invokers, responsible for enumerating over data rows and invokingCOMMENT
LOW….v3.generatorutility/TestMethod/TheoryMethodDetails.cs201 /// <summary>COMMENT
LOW…v3.generatorutility/TestMethod/ITestMethodGenerator.cs1#nullable enableCOMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs21 /// and <see cref="CallerLineNumberAttribute"/>, and uses any values passed to those parameters asCOMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs81COMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs101 public INamedTypeSymbol ClassSymbol { get; }COMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs121 /// Gets the explicit test flag for the test methodCOMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs141COMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs161 public INamedTypeSymbol? SkipType { get; set; }COMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs181 public int? SourceLineNumber { get; set; }COMMENT
LOW…it.v3.generatorutility/TestMethod/TestMethodDetails.cs281 /// <item><c>DisplayName</c></item>COMMENT
LOW…it.v3.generatorutility/TestMethod/FactMethodDetails.cs1#nullable enableCOMMENT
LOW…it.v3.generatorutility/TestMethod/FactMethodDetails.cs41COMMENT
LOW…neratorutility/TheoryData/DataAttributeRegistration.cs21 /// </remarks>COMMENT
LOW…neratorutility/TheoryData/DataAttributeRegistration.cs41 /// </summary>COMMENT
LOW…neratorutility/TheoryData/DataAttributeRegistration.cs61 /// </summary>COMMENT
LOW…neratorutility/TheoryData/DataAttributeRegistration.cs81 /// <returns>COMMENT
LOW…neratorutility/TheoryData/DataAttributeRegistration.cs181 /// <param name="testClass">The test class</param>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/XunitGenerator.cs21 /// <remarks>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/XunitGenerator.cs41 /// for <c>xunit.v3.core.aot</c> (for test projects).COMMENT
LOW…v3.generatorutility/Utility/XunitAttributeGenerator.cs21 /// <param name="fullyQualifiedAttributeTypeName">The fully qualified attribute name (e.g.,COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/ComparerHelper.cs1#nullable enableCOMMENT
LOWsrc/xunit.v3.generatorutility/Utility/ComparerHelper.cs21 /// </summary>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/ComparerHelper.cs41 T? y)COMMENT
LOW…ility/Utility/XunitAssemblyAttributeGeneratorResult.cs1#nullable enableCOMMENT
LOWsrc/xunit.v3.generatorutility/Utility/HashCodeHelper.cs21 HashCodeHelper(int start) =>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/HashCodeHelper.cs41 /// Starts a new instance of <see cref="HashCodeHelper"/>, when you are the not derived from a baseCOMMENT
LOWsrc/xunit.v3.generatorutility/Utility/HashCodeHelper.cs61COMMENT
LOW….v3.generatorutility/Utility/XunitMSBuildProperties.cs1#nullable enableCOMMENT
LOW….v3.generatorutility/Utility/XunitMSBuildProperties.cs21 /// <summary>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Names.cs1#nullable enableCOMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs441 /// object will return <see langword="null"/>.COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs461 /// Produces a quoted and escaped value of a character, appropriate for placement into generated source.COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs541COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs601 /// </summary>COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs681 list.Add(value);COMMENT
LOWsrc/xunit.v3.generatorutility/Utility/Extensions.cs841 /// <summary>COMMENT
LOW…it.v3.generatorutility/Utility/XunitGeneratorResult.cs41 get => generatorNamespace ?? throw new InvalidOperationException("Failed to initialize generator result");COMMENT
LOW…unit.v3.runner.inproc.console/Utility/AutomatedMode.cs1namespace Xunit.Runner.InProc.SystemConsole;COMMENT
LOW…runner.inproc.console/Utility/ProjectAssemblyRunner.cs61 "xUnit.net v3 In-Process Runner v{0} ({1}-bit {2})",COMMENT
LOW…Configuration/ConfigReader_Configuration_reflection.cs1#if NETFRAMEWORKCOMMENT
LOW…/xunit.v3.runner.utility/Configuration/ConfigReader.cs1// This is in this namespace so that it aligns with ConfigReader_Json, which comes from xunit.v3.runner.commonCOMMENT
LOW…nit.v3.runner.utility/SimpleRunner/TestFinishedInfo.cs1using Xunit.Sdk;COMMENT
LOWsrc/xunit.v3.runner.utility/SimpleRunner/TestInfo.cs1namespace Xunit.SimpleRunner;COMMENT
LOWsrc/xunit.v3.runner.utility/SimpleRunner/TestInfo.cs21 public required IReadOnlyDictionary<string, IReadOnlyCollection<string>> Traits { get; set; }COMMENT
808 more matches not shown…
Hallucination Indicators13 hits · 130 pts
SeverityFileLineSnippetContext
CRITICALsrc/xunit.v3.runner.utility/Utility/RemotingUtility.cs23 System.Runtime.Remoting.Channels.ChannelServices.UnregisterChannel(channel);CODE
CRITICALsrc/common.tests/EntryPoint.cs13 return global::Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult();CODE
CRITICALsrc/common.tests/EntryPoint.cs21 return global::Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult();CODE
CRITICAL…c/xunit.v2.tests/Sdk/TestCaseDescriptorFactoryTests.cs111 Assert.Equal($"S :F:TestCaseDescriptorFactoryTests+TestClass:FactMethod:1:0:{testCase.TestMethod.TestClass.TestCollecCODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs23 return global::Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult();CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs43 global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs56 Return Global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs79 return global::Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult();CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs94 global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs104 Return Global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs130 return global::Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult();CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs150 global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
CRITICALsrc/xunit.v3.msbuildtasks/XunitEntryPointGenerator.cs163 Return Global.Xunit.Runner.InProc.SystemConsole.ConsoleRunner.Run(args).GetAwaiter().GetResult()CODE
Cross-File Repetition12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…s/Generators/TestCaseOrdererAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…nerators/TestClassOrdererAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…enerators/TestCaseOrdererAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…erators/TestMethodOrdererAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…ors/TestCollectionOrdererAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…Generators/TestMethodOrdererAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…/Generators/TestClassOrdererAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…rators/TestCollectionOrdererAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.core.aot.generators. </auto-generated> #if xunit_generSTRING
HIGH…tTestingPlatformResultWriterAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.runner.common.aot.generators. </auto-generated> #if xuSTRING
HIGH…/RegisterConsoleResultWriterAttributeGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.runner.common.aot.generators. </auto-generated> #if xuSTRING
HIGH…gisterConsoleResultWriterAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.runner.common.aot.generators. </auto-generated> #if xuSTRING
HIGH…stingPlatformResultWriterAttributeOfTGeneratorTests.cs0// <auto-generated> this file has been auto generated by xunit.v3.runner.common.aot.generators. </auto-generated> #if xuSTRING