The automatic type-safe REST library for .NET. Refit turns a REST API into a C# interface and generates the HttpClient implementation, with support for HttpClientFactory, pluggable serializers and a testing package.
This report summarizes scanner evidence for reactiveui/refit, a C# project with 9,576 GitHub stars. SynthScan examined 160,465 lines of code across 1540 source files, recording 440 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 3.3 (Low 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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 420 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 11 finding(s).
Which changes need focused human review? 440 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
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.
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.
The scanner identified 440 distinct pattern matches across 6 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …faceStubGenerator.Shared/HttpMethodAttributeParsing.cs | 41 | internal static string ResolveCustomHttpVerb(INamedTypeSymbol attributeClass) => | COMMENT |
| LOW | …c/InterfaceStubGenerator.Shared/RequestPathEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/SpanBufferEmission.cs | 21 | #else | COMMENT |
| LOW | …nterfaceStubGenerator.Shared/GeneratorModelEquality.cs | 21 | /// <typeparam name="T">The element type.</typeparam> | COMMENT |
| LOW | …c/InterfaceStubGenerator.Shared/PagedMethodEmission.cs | 21 | internal const string PageContinuationTo = "global::Refit.PageContinuation.To<"; | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/QueryValueEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …InterfaceStubGenerator.Shared/QueryParameterParsing.cs | 321 | COMMENT | |
| LOW | …InterfaceStubGenerator.Shared/QueryParameterParsing.cs | 401 | COMMENT | |
| LOW | …terfaceStubGenerator.Shared/QueryDictionaryEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …aceStubGenerator.Shared/InlineRequestClassification.cs | 21 | /// <summary>Determines whether generated request building can construct a method's request inline.</summary> | COMMENT |
| LOW | …aceStubGenerator.Shared/InlineRequestClassification.cs | 121 | /// <summary>Determines whether a type is <c>System.Net.Http.HttpRequestMessage</c>, the type argument of the | COMMENT |
| LOW | …aceStubGenerator.Shared/RequestParameterKindParsing.cs | 101 | COMMENT | |
| LOW | …c/InterfaceStubGenerator.Shared/QueryObjectEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …erfaceStubGenerator.Shared/MultipartContentEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …terfaceStubGenerator.Shared/RequestPropertyEmission.cs | 21 | COMMENT | |
| LOW | …rfaceStubGenerator.Shared/MultipartParameterParsing.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/IsExternalInit.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …terfaceStubGenerator.Shared/RequestParameterParsing.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …terfaceStubGenerator.Shared/RequestParameterParsing.cs | 761 | true, | COMMENT |
| LOW | …faceStubGenerator.Shared/QueryObjectPropertyParsing.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …faceStubGenerator.Shared/QueryObjectPropertyParsing.cs | 121 | ContainingNamespace.ContainingNamespace.ContainingNamespace.Name: "System" | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/EmitterTesting.cs | 41 | /// <summary>Determines whether a type parameter has constraints that should be emitted.</summary> | COMMENT |
| LOW | …nterfaceStubGenerator.Shared/QueryParameterEmission.cs | 561 | COMMENT | |
| LOW | …nterfaceStubGenerator.Shared/QueryParameterEmission.cs | 601 | /// <param name="ProviderField">The cached attribute-provider field name for the parameter.</param> | COMMENT |
| LOW | …c/InterfaceStubGenerator.Shared/GeneratedTypeNaming.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …c/InterfaceStubGenerator.Shared/BodyContentEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …c/InterfaceStubGenerator.Shared/BodyContentEmission.cs | 241 | COMMENT | |
| LOW | …terfaceStubGenerator.Shared/MethodSignatureEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …faceStubGenerator.Shared/PathObjectParameterParsing.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …InterfaceStubGenerator.Shared/InlineRequestEmission.cs | 821 | internal static string BodySerializationMemberName(string serializationMethod) => serializationMethod == "Json" ? "S | COMMENT |
| LOW | …InterfaceStubGenerator.Shared/InlineRequestEmission.cs | 841 | /// <param name = "RequestLocal">The generated request message local name.</param> | COMMENT |
| LOW | …erfaceStubGenerator.Shared/ReturnTypeAdapterParsing.cs | 181 | /// <param name="templateReturn">The adapter's declared <c>TReturn</c> (open constructed over the adapter's paramete | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/Parser.cs | 21 | internal const int EstimatedTypeParameterLength = 32; | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/Parser.cs | 201 | COMMENT | |
| LOW | src/InterfaceStubGenerator.Shared/RequestParsing.cs | 221 | return; | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/RequestParsing.cs | 661 | /// <param name="ResultType">The method result type.</param> | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/RequestParsing.cs | 781 | /// <summary>Gets a value indicating whether any placeholder binds a nested property (<c>{param.Prop}</c>).</sum | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/RequestBodyParsing.cs | 341 | COMMENT | |
| LOW | src/InterfaceStubGenerator.Shared/FormFieldEmission.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …bGenerator.Shared/Models/QueryObjectCollectionModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …terfaceStubGenerator.Shared/Models/RequestBodyModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …eStubGenerator.Shared/Models/PathObjectBindingModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/Models/MethodModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …rfaceStubGenerator.Shared/Models/MultipartPartModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …eStubGenerator.Shared/Models/NamedAttributeArgument.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …ceStubGenerator.Shared/Models/InlineMethodFragments.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …eStubGenerator.Shared/Models/MethodAnnotationsModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …faceStubGenerator.Shared/Models/QueryParameterModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …InterfaceStubGenerator.Shared/Models/InterfaceModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …Generator.Shared/Models/GenerationCapabilitiesModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …erfaceStubGenerator.Shared/Models/MultipartPartKind.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …InterfaceStubGenerator.Shared/Models/InlineFallback.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …ceStubGenerator.Shared/Models/GenerationCachesModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | src/InterfaceStubGenerator.Shared/Models/PagingModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …aceStubGenerator.Shared/Models/QueryDictionaryModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …faceStubGenerator.Shared/Models/GeneratedFieldNames.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …ceStubGenerator.Shared/Models/EnumFormatMemberModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …ceStubGenerator.Shared/Models/RequestParameterModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …eStubGenerator.Shared/Models/GenerationSymbolsModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| LOW | …eStubGenerator.Shared/Models/RequestGenerationModel.cs | 1 | // Copyright (c) 2019-2026 ReactiveUI and Contributors. All rights reserved. | COMMENT |
| 357 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …equestBuilderImplementation.QueryAndHeaders.Helpers.cs | 90 | /// When <see langword="true"/> the value is added with <see cref="System.Net.Http.Headers.HttpHeaders.Add(string, s | COMMENT |
| CRITICAL | src/Refit/GeneratedRequestRunner.cs | 476 | /// When <see langword="true"/> the value is added with <see cref="System.Net.Http.Headers.HttpHeaders.Add(string, s | COMMENT |
| CRITICAL | src/Refit/RefitRequestsSettings.cs | 53 | /// When <see langword="true"/>, header values are added with <see cref="System.Net.Http.Headers.HttpHeaders.Add(str | COMMENT |
| CRITICAL | src/Refit/RefitRequestsSettings.cs | 57 | /// <see cref="System.Net.Http.Headers.HttpHeaders.TryAddWithoutValidation(string, string?)"/>, preserving Refit's | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/tests/Refit.GeneratorTests/ParserCoverageTests.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { [get("/x/{} | STRING |
| HIGH | …Refit.GeneratorTests/RequestGenerationCoverageTests.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { [get("/x/{} | STRING |
| HIGH | …Tests/RequestGenerationCoverageTests.RequestTargets.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { [get("/x/{} | STRING |
| HIGH | …/tests/Refit.GeneratorTests/QueryParameterTypeTests.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { {{body}} } | STRING |
| HIGH | …c/tests/Refit.GeneratorTests/PathParameterTypeTests.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { {{body}} } | STRING |
| HIGH | …ratorTests/RequestGenerationCoverageTests.Multipart.cs | 0 | using system.threading.tasks; using refit; namespace refitgeneratortest; public interface igeneratedclient { {{body}} } | STRING |
| HIGH | …ts/Refit.GeneratorTests/Incremental/InheritanceTest.cs | 0 | #nullable enabled using system; using system.collections.generic; using system.linq; using system.net.http; using system | STRING |
| HIGH | …ts/Refit.GeneratorTests/Incremental/IncrementalTest.cs | 0 | #nullable enabled using system; using system.collections.generic; using system.linq; using system.net.http; using system | STRING |
| HIGH | …tests/Refit.GeneratorTests/Incremental/FunctionTest.cs | 0 | #nullable enabled using system; using system.collections.generic; using system.linq; using system.net.http; using system | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ntFactory.Tests/AuthenticatedHttpClientHandlerTests.cs | 64 | new(HttpMethod.Get, "https://example.test") { Headers = { Authorization = new("Bearer", "placeholder") }, }; | CODE |
| LOW | src/tests/Refit.Tests/RequestBuilderTests.cs | 291 | new JsonLineRecord { Id = "125", Name = "Acme Corp" }, | CODE |
| LOW | …tpClientFactoryExtensionsTests.KeyedGeneratedClient.cs | 197 | client.DefaultRequestHeaders.Authorization = new("Bearer", "placeholder"); | CODE |
| LOW | …Refit.Tests/RestServiceIntegrationTests.RequestBody.cs | 144 | new() { Id = "125", Name = "Acme Corp" } | CODE |
| LOW | …/tests/Refit.Tests/HttpClientFactoryExtensionsTests.cs | 347 | client.DefaultRequestHeaders.Authorization = new("Bearer", "placeholder"); | CODE |
| LOW | …/tests/Refit.Tests/HttpClientFactoryExtensionsTests.cs | 367 | client.DefaultRequestHeaders.Authorization = new("Bearer", "placeholder"); | CODE |
| LOW | src/Refit.Analyzers.Shared/RefitInterfaceAnalyzer.cs | 354 | /// <param name = "placeholder">The placeholder text including its braces.</param> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/sonarcloud.yml | 22 | # The smoke tests are standalone executables run outside the test harness, so no collector instruments them. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …rks/Refit.Benchmarks/StaticValueHttpResponseHandler.cs | 12 | public class StaticValueHttpResponseHandler(string response, HttpStatusCode code) : HttpMessageHandler | CODE |
| LOW | …arks/Refit.Benchmarks/StaticFileHttpResponseHandler.cs | 10 | public class StaticFileHttpResponseHandler : HttpMessageHandler | CODE |