AI Slop Code Risk Monitor

microsoft/typespec

SlopCodeMonitor badge for microsoft/typespec Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
3.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for microsoft/typespec, a Java project with 5,907 GitHub stars. SynthScan examined 1,899,883 lines of code across 13942 source files, recording 3708 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 3.1 (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.

3.1
Adjusted Signal
3.1
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
5.9K
Stars
Java
Language
1.9M
Lines of Code
13.9K
Files
3.7K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 7.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.4/100 · LOW

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

Agent Over-Engineering Ratio 11.5/100 · LOW

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

PR Review Velocity Impact 14.1/100 · LOW

Which changes need focused human review? 3708 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

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.

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 28HIGH 37MEDIUM 803LOW 2840

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 3708 distinct pattern matches across 22 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.

Decorative Section Separators755 hits · 2325 pts
SeverityFileLineSnippetContext
MEDIUM…kages/http-client-python/eng/scripts/ci/run_pyright.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_pyright.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/conf.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/conf.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_apiview.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…kages/http-client-python/eng/scripts/ci/run_apiview.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/run_mypy.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/eng/scripts/ci/run_mypy.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/ci/run_pylint.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/ci/run_pylint.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/eng/scripts/ci/run_sphinx_build.py3# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/eng/scripts/ci/run_sphinx_build.py6# --------------------------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/run_tsp.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/run_tsp.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/venvtools.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/venvtools.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…p-client-python/eng/scripts/setup/build_pygen_wheel.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…p-client-python/eng/scripts/setup/build_pygen_wheel.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/run_batch.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ages/http-client-python/eng/scripts/setup/run_batch.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py7# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/prepare.py3# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/eng/scripts/setup/prepare.py7# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/conftest.py1# -------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/conftest.py5# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini22# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini24# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini62# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini66# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini147# =============================================================================COMMENT
MEDIUMpackages/http-client-python/tests/tox.ini149# =============================================================================COMMENT
MEDIUM…es/http-client-python/tests/unit/test_raw_bytes_xml.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…es/http-client-python/tests/unit/test_raw_bytes_xml.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…nt-python/tests/unit/test_generated_packaging_files.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…nt-python/tests/unit/test_generated_packaging_files.py5# --------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/conftest.py1# -------------------------------------------------------------------------COMMENT
MEDIUMpackages/http-client-python/tests/unit/conftest.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_preprocess_etag.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_preprocess_etag.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…python/tests/unit/test_model_base_xml_serialization.py1# ------------------------------------COMMENT
MEDIUM…python/tests/unit/test_model_base_xml_serialization.py4# ------------------------------------COMMENT
MEDIUM…t-python/tests/unit/test_content_type_optional_body.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…t-python/tests/unit/test_content_type_optional_body.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_optional_return_type.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_optional_return_type.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/tests/unit/test_typeddict.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…ckages/http-client-python/tests/unit/test_typeddict.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_bytes_body_overloads.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…-client-python/tests/unit/test_bytes_body_overloads.py5# --------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/http-client-python/tests/unit/test_name_converter.py1# -------------------------------------------------------------------------COMMENT
MEDIUM⚡…s/http-client-python/tests/unit/test_name_converter.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_enum_docstrings.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…/http-client-python/tests/unit/test_enum_docstrings.py5# --------------------------------------------------------------------------COMMENT
MEDIUM…es/http-client-python/tests/unit/test_sse_streaming.py1# -------------------------------------------------------------------------COMMENT
MEDIUM…es/http-client-python/tests/unit/test_sse_streaming.py5# --------------------------------------------------------------------------COMMENT
695 more matches not shown…
Hyper-Verbose Identifiers2118 hits · 2222 pts
SeverityFileLineSnippetContext
LOWeng/common/scripts/labels/automation.ts159function createExternalReviewersConfig(config: RepoConfig): PolicyServiceConfig {CODE
LOWeng/emitter-diff/src/cli.ts99async function resolveDefaultBaselineRef(repoRoot: string): Promise<string> {CODE
LOWeng/emitter-diff/src/baseline-cache.ts26export function computeBaselineProfileKey(input: BaselineCacheProfileInput): string {CODE
LOWwebsite/public/1ds-init.js11function ensureCookieBannerPlaceholder() {CODE
LOWwebsite/src/content/current-sidebar.ts5function getBadgeForLibraryStability(stability: LibraryStability | undefined): Badge | undefined {CODE
LOWwebsite/src/content/current-sidebar.ts18function createLibraryReferenceStructure(CODE
LOW…/src/content/docs/docs/extending-typespec/codefixes.md18export function createChangeIdentifierCodeFix(node: IdentifierNode, newIdentifier: string) {CODE
LOW…e/src/content/docs/release-notes/release-2022-12-07.md155export function getServiceNamespaceString(program: Program): string | undefined;CODE
LOW…site/src/components/playground-component/import-map.ts14async function fetchAdditionalPackageImports(CODE
LOW…tp-client-js/test/scenarios/encoding/bytes_nullable.md50export function jsonModelWithBytesToApplicationTransform(input_?: any): ModelWithBytes {CODE
LOW…tp-client-js/test/scenarios/encoding/bytes_nullable.md130export function jsonModelWithBytesToTransportTransform(input_?: ModelWithBytes | null): any {CODE
LOW…ient-js/test/scenarios/encoding/bytes_json_property.md47export function jsonBytesBodyToApplicationTransform(input_?: any): BytesBody {CODE
LOW…s/test/scenarios/encoding/model_with_bytes_property.md37export function jsonBytesPropertyToApplicationTransform(input_?: any): BytesProperty {CODE
LOW…s/http-client-js/test/scenarios/models/model_spread.md38export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…s/http-client-js/test/scenarios/models/model_spread.md53export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md112export function dateUnixTimestampSerializer(date?: Date | null): number {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md119export function dateUnixTimestampDeserializer(date?: number | null): Date {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md126export function jsonFishToTransportDiscriminator(input_?: Fish): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md141export function jsonFishToTransportTransform(input_?: Fish | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md151export function jsonFishToApplicationDiscriminator(input_?: any): Fish {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md166export function jsonFishToApplicationTransform(input_?: any): Fish {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md176export function jsonSharkToTransportDiscriminator(input_?: Shark): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md191export function jsonSharkToTransportTransform(input_?: Shark | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md202export function jsonSharkToApplicationDiscriminator(input_?: any): Shark {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md217export function jsonSharkToApplicationTransform(input_?: any): Shark {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md228export function jsonSawSharkToTransportTransform(input_?: SawShark | null): any {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md238export function jsonSawSharkToApplicationTransform(input_?: any): SawShark {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md248export function jsonGoblinSharkToTransportTransform(input_?: GoblinShark | null): any {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md258export function jsonGoblinSharkToApplicationTransform(input_?: any): GoblinShark {CODE
LOW⚡…/test/scenarios/models/inheritance_2_discriminators.md268export function jsonSalmonToTransportTransform(input_?: Salmon | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md280export function jsonSalmonToApplicationTransform(input_?: any): Salmon {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md292export function jsonArrayFishToTransportTransform(items_?: Array<Fish> | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md305export function jsonArrayFishToApplicationTransform(items_?: any): Array<Fish> {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md318export function jsonRecordFishToTransportTransform(items_?: Record<string, any> | null): any {CODE
LOW…/test/scenarios/models/inheritance_2_discriminators.md332export function jsonRecordFishToApplicationTransform(items_?: any): Record<string, any> {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md44export function jsonPetToTransportTransform(input_?: Pet | null): any {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md58export function jsonPetToApplicationTransform(input_?: any): Pet {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md72export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…/http-client-js/test/scenarios/models/model_extends.md87export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW…s/test/scenarios/models/model_additional_properties.md46export function jsonDogToTransportTransform(input_?: Dog | null): any {CODE
LOW…s/test/scenarios/models/model_additional_properties.md62export function jsonDogToApplicationTransform(input_?: any): Dog {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md39export function jsonDinosaurToTransportTransform(input_?: Dinosaur | null): any {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md52export function jsonTRexToTransportTransform(input_?: TRex | null): any {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md66export function jsonDinosaurToApplicationTransform(input_?: any): Dinosaur {CODE
LOW…-js/test/scenarios/models/inheritance_discriminator.md79export function jsonTRexToApplicationTransform(input_?: any): TRex {CODE
LOW…/test/scenarios/models/property_references_property.md37export function jsonBarToTransportTransform(input_?: Bar | null): any {CODE
LOW⚡…/test/scenarios/models/property_references_property.md102export function dateUnixTimestampSerializer(date?: Date | null): number {CODE
LOW⚡…/test/scenarios/models/property_references_property.md109export function dateUnixTimestampDeserializer(date?: number | null): Date {CODE
LOW⚡…/test/scenarios/models/property_references_property.md116export function jsonBarToTransportTransform(input_?: Bar | null): any {CODE
LOW⚡…/test/scenarios/models/property_references_property.md125export function jsonBarToApplicationTransform(input_?: any): Bar {CODE
LOW…/test/scenarios/models/property_references_property.md141export function jsonBarToApplicationTransform(input_?: any): Bar {CODE
LOW…es/http-client-js/test/scenarios/serializers/spread.md37export async function spreadWithMultipleParameters(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md43export function jsonSpreadRecordForDiscriminatedUnionToTransportTransform(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md57export function jsonSpreadRecordForDiscriminatedUnionToApplicationTransform(CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md73export function jsonWidgetDataToTransportTransform(input_?: WidgetData | null): any {CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md82export function jsonWidgetDataToApplicationDiscriminator(input_?: any): WidgetData {CODE
LOW…st/scenarios/serializers/discriminated_union_spread.md100export function jsonWidgetDataToTransportDiscriminator(input_?: WidgetData): any {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md24export function jsonFooToTransportTransform(input_?: Foo | null): any {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md35export function jsonFooToApplicationTransform(input_?: any): Foo {CODE
LOW…es/http-client-js/test/scenarios/serializers/record.md78export function jsonFooToTransportTransform(input_?: Foo | null): any {CODE
2058 more matches not shown…
Over-Commented Block480 hits · 404 pts
SeverityFileLineSnippetContext
LOWeng/tsp-core/pipelines/pr-tools.yml101 - script: node eng/tsp-core/scripts/create-tryit-comment.tsCOMMENT
LOWeng/tsp-core/pipelines/jobs/cli/build-tsp-cli-all.yml21 # parameters:COMMENT
LOW…pleService/SampleClient/src/Generated/DogOperations.cs61 throw;COMMENT
LOW…rp/SampleService/SampleClient/src/Generated/Metrics.cs61COMMENT
LOW…Service/SampleClient/src/Generated/AnimalOperations.cs61 throw;COMMENT
LOW…Service/SampleClient/src/Generated/AnimalOperations.cs181 throw;COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs101 /// [Protocol Method] Return hiCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs141 /// <item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs241 /// </item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs381 /// </item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs501 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs601 System.Console.WriteLine($"An exception was thrown in method HelloDemo2Async: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs641 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs721 System.Console.WriteLine($"An exception was thrown in method CreateLiteralAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs861 System.Console.WriteLine("Exiting method TopAction.");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs941COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1001COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1061 System.Console.WriteLine($"An exception was thrown in method PatchActionAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1101 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1141 /// <param name="requiredNullableString"> required nullable string. </param>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1201COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1261 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1301 /// [Protocol Method] Model can have its friendly nameCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1381 System.Console.WriteLine($"An exception was thrown in method FriendlyModelAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1521 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1641 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1721 /// [Protocol Method] get extensible enumCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1841 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs1961 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2061 {COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2101 /// <summary>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2181 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2221 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2301 System.Console.WriteLine($"An exception was thrown in method WithApiVersionAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2401 System.Console.WriteLine($"An exception was thrown in method GetWithNextLinkAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2501 System.Console.WriteLine($"An exception was thrown in method GetWithStringNextLinkAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2541 /// [Protocol Method] List things with continuation tokenCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2641 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2741 finallyCOMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2821 /// <item>COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2861 /// <list type="bullet">COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2941 System.Console.WriteLine($"An exception was thrown in method EmbeddedParametersAsync: {ex}");COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs2981 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs3061 }COMMENT
LOW…ice/SampleClient/src/Generated/SampleTypeSpecClient.cs3201 {COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs21 /// <param name="optionalLiteralInt"> optional literal int. </param>COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs61 /// <param name="requiredCollection"> Required collection of enums. </param>COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs181 requiredQuery,COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs241 return new AnotherDynamicModel(bar, default);COMMENT
LOW…mpleClient/src/Generated/SampleTypeSpecModelFactory.cs261 /// <param name="wrappedColors"> A wrapped array of strings (default). </param>COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs61 System.Console.WriteLine("Exiting method GetTree.");COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs161 throw;COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs241 }COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs361 System.Console.WriteLine("Exiting method UpdateTreeAsync.");COMMENT
LOW…eService/SampleClient/src/Generated/PlantOperations.cs401 /// <list type="bullet">COMMENT
LOW…pleService/SampleClient/src/Generated/PetOperations.cs61 throw;COMMENT
LOW…pleService/SampleClient/src/Generated/PetOperations.cs181 throw;COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs61 /// <param name="requiredCollection"> Required collection of enums. </param>COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs161 /// <summary>COMMENT
LOW…ce/SampleClient/src/Generated/Models/RoundTripModel.cs181 /// <term> BinaryData.FromString("{\"key\": \"value\"}"). </term>COMMENT
420 more matches not shown…
Hallucination Indicators28 hits · 305 pts
SeverityFileLineSnippetContext
CRITICALeng/emitter-diff/workflow.test.ts365 f.github.rest.issues.createComment.mockRejectedValueOnce(new Error("Permission denied"));CODE
CRITICAL⚡…-python/tests/mock_api/azure/test_azure_core_traits.py10from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡…hon/tests/mock_api/azure/test_service_multi_service.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡…api/azure/test_azure_resource_manager_multi_service.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡…k_api/azure/asynctests/test_azure_core_traits_async.py11from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡…i/azure/asynctests/test_service_multi_service_async.py7from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL⚡…sts/test_azure_resource_manager_multi_service_async.py8from azure.core.exceptions import HttpResponseErrorCODE
CRITICALpackages/http/test/test-host.ts61 ? Array.from(r.parameters.body.type.properties.keys())CODE
CRITICAL…ient-csharp/emitter/test/Unit/operation-paging.test.ts58 @global.Azure.ClientGenerator.Core.Legacy.nextLinkVerb("POST")CODE
CRITICAL…osoft.TypeSpec.Generator/test/Snippets/SnippetTests.cs123 Assert.AreEqual("new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)", writerCODE
CRITICAL…osoft.TypeSpec.Generator/test/Snippets/SnippetTests.cs143 Assert.AreEqual("new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)", writerCODE
CRITICAL…Data/SnippetTests/ValidateInstanceCtorWithArguments.cs1new global::Microsoft.TypeSpec.Generator.Tests.Snippets.SnippetTests.TestClass(20)CODE
CRITICAL…medTypeSymbolProviders/NamedTypeSymbolProviderTests.cs512 var symbols = Microsoft.TypeSpec.Generator.SourceInput.SourceInputHelper.GetSymbols(compilation.Assembly.ModSTRING
CRITICAL…ers/ModelFactories/ModelFactoriesCustomizationTests.cs39 var method = generator.Object.OutputLibrary.ModelFactory.Value.Methods.Single(method =>CODE
CRITICAL…urceInput/TestData/ApiCompatBaselineTests/Baseline.txt3MembersMustExist : Member 'public Azure.AI.Projects.Agents.ProtocolVersionRecord Azure.AI.Projects.Agents.ProjectsAgentsCODE
CRITICAL…urceInput/TestData/ApiCompatBaselineTests/Baseline.xml13 <Target>M:Azure.AI.Projects.Agents.ProjectsAgentsModelFactory.ProtocolVersionRecord(Azure.AI.Projects.Agents.ProjectCODE
CRITICAL…ientModel/test/Providers/ModelBaseConstructionTests.cs167 Assert.That(model.BaseModelProvider.FullConstructor.Signature.Parameters.Single().Type.IsNullable,CODE
CRITICAL…TypeDefinitions/SystemObjectModelSerializationTests.cs176 Assert.That(generator.Object.TypeFactory.CSharpTypeMap.Keys.Any(type => type.AreNamesEqual(frameworkType)),STRING
CRITICAL…t.TypeSpec.Generator.ClientModel/src/ScmTypeFactory.cs59 => _hasDynamicModels ??= ScmCodeModelGenerator.Instance.InputLibrary.InputNamespace.Models.Any(m => m.IsDynaCODE
CRITICAL…ckages/http-client-csharp/playground-server/Program.cs150 arch = System.Runtime.InteropServices.RuntimeInformation.OSArchitecture.ToString()CODE
CRITICAL⚡…ypespec/http/client/generator/core/util/CodeNamer.java32 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.toCamelCase(name);CODE
CRITICAL⚡…ypespec/http/client/generator/core/util/CodeNamer.java36 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.toPascalCase(name);CODE
CRITICAL⚡…ypespec/http/client/generator/core/util/CodeNamer.java40 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.escapeXmlComment(comment);CODE
CRITICAL…ypespec/http/client/generator/core/util/CodeNamer.java130 return com.microsoft.typespec.http.client.generator.core.preprocessor.namer.CodeNamer.getValidName(name,CODE
CRITICAL…ator/core/template/util/ModelTemplateHeaderHelper.java43 for (Field httpHeaderNameConstant : io.clientcore.core.http.models.HttpHeaderName.class.getDeclaredFields()) {CODE
CRITICAL…enerator/core/template/example/ModelExampleWriter.java349 this.imports.add(java.nio.charset.StandardCharsets.class.getName());CODE
CRITICALpackages/compiler/test/formatter/formatter.test.ts3090@@Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator(subscribe1);STRING
CRITICALpackages/compiler/test/formatter/formatter.test.ts3093@@Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator.Some.Very.Long.Namespace.Decorator(STRING
Structural Annotation Overuse65 hits · 110 pts
SeverityFileLineSnippetContext
LOW…ite/src/content/docs/docs/extending-typespec/basics.md36## Step 1: Initial setupCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md169## Step 2: Adding TypeSpec types to your libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md210## Step 3: Defining dependenciesCOMMENT
LOW⚡…ite/src/content/docs/docs/extending-typespec/basics.md242## Step 4: Testing your TypeSpec libraryCOMMENT
LOW⚡…ite/src/content/docs/docs/extending-typespec/basics.md246## Step 5: Publishing your TypeSpec libraryCOMMENT
LOW⚡…ite/src/content/docs/docs/extending-typespec/basics.md250## Step 6: Importing your TypeSpec libraryCOMMENT
LOW…ite/src/content/docs/docs/extending-typespec/basics.md269## Step 7: Next stepsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-65.md59// Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-65.md63// Step 2: call mutator instead of projection apiCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-67.md393 // Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWwebsite/src/content/docs/release-notes/typespec-0-67.md397 // Step 2: call mutator instead of projection apiCOMMENT
LOWpackages/http-client-python/ARCHITECTURE.md126#### Step 1: PreprocessCOMMENT
LOWpackages/http-client-python/ARCHITECTURE.md137#### Step 2: CodegenCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md37### Step 1: Build and regenerateCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md50### Step 2: Fetch or update baselineCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md90### Step 3: Generate diff summaryCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md155### Step 4: Open in editorCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md176### Step 5: Report to userCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md248### Step 1: Check what code changes were made on the branchCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md260### Step 2: Correlate code changes with expected generated output changesCOMMENT
LOW…tp-client-python/.github/skills/diff-upstream/SKILL.md272### Step 3: Compare expected vs actual diffsCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md32### Step 1: Build the emitterCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md42### Step 2: Check if regeneration is neededCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md77### Step 3: Regenerate if neededCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md99### Step 4: Run the generator test suiteCOMMENT
LOW…-python/.github/skills/test-unbranded-emitter/SKILL.md113### Step 5: Report resultsCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md35### Step 1: Resolve the spec pathCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md55### Step 2: Locate and parse `tspconfig.yaml`COMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md72### Step 3: Extract Python emitter options from tspconfig.yamlCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md97### Step 4: Determine the flavorCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md109### Step 5: Find the TypeSpec compilerCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md125### Step 6: Construct and run the compile commandCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md170### Step 7: Run the compilationCOMMENT
LOW…-python/.github/skills/generate-from-typespec/SKILL.md184### Step 8: Verify and clean upCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md236### Step 0: Library Selection (Interactive Mode Only)COMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md244### Step 1: Build Unbranded GeneratorCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md250### Step 2: Package Unbranded GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md275#### Step 3: Update OpenAI Generator and RegenerateCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md305### Step 3: Update and Build Azure GeneratorCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md313### Step 4: Package Azure GeneratorCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md320### Step 5: Update eng Folder ArtifactsCOMMENT
LOW⚡…es/http-client-csharp/eng/scripts/docs/RegenPreview.md330### Step 6: Update and Build Management Plane GeneratorCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md347### Step 7: Prepare Library ListCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md357### Step 8: Regenerate LibrariesCOMMENT
LOW…es/http-client-csharp/eng/scripts/docs/RegenPreview.md377### Step 9: Restore Artifacts (On Success Only)COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs249 // Step 1: Build all types (simulating CSharpGen.ExecuteAsync)COMMENT
LOW⚡…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs260 // Step 2: Visitor changes the parameter type from int to float,COMMENT
LOW⚡…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs265 // Step 3: Apply customization filtering after visitorCOMMENT
LOW…t/typespec/http/client/generator/mgmt/FluentNamer.java83 // Step 2: TransformCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java68 // Step 1: Parse input yaml as CodeModelCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java71 // Step 2: MapCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java74 // Step 3: Write to templatesCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java77 // Step 4: Print to filesCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java68 // Step 1: post processCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java114 // Step 2: Print to filesCOMMENT
LOWpackages/versioning/CHANGELOG.md155 // Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWpackages/versioning/CHANGELOG.md159 // Step 2: call mutator instead of projection apiCOMMENT
LOWpackages/versioning/CHANGELOG.md190// Step 1: Update to retrieve the mutation instead of projectionsCOMMENT
LOWpackages/versioning/CHANGELOG.md194// Step 2: call mutator instead of projection apiCOMMENT
LOW.github/skills/emitter-prep-for-pr/SKILL.md27### Step 1: Determine the emitter packageCOMMENT
5 more matches not shown…
Modern AI Meta-Vocabulary36 hits · 84 pts
SeverityFileLineSnippetContext
MEDIUMCONTRIBUTING.md524| `agentic-workflows` | #000000 | Issues/PR created by github agentic workflows |CODE
MEDIUM…nt/docs/docs/getting-started/code-generation-csharp.md212## 7. Understanding the dependency injection systemCOMMENT
MEDIUM…nt/docs/docs/getting-started/code-generation-csharp.md214The generated C# service uses ASP.NET Core's dependency injection system to connect controllers with your business logicCODE
MEDIUM…ocs/extending-typespec/writing-scaffolding-template.md27## Basics of a scaffolding templateCOMMENT
MEDIUM…/src/content/docs/release-notes/typespec-1-0-0-rc-0.md95- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUM…/src/content/docs/release-notes/typespec-1-0-0-rc-0.md95- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUM…bsite/src/content/docs/release-notes/typespec-1-1-0.md31- [#7541](https://github.com/microsoft/typespec/pull/7541) Add extension API for other vscode extension to be able to reCODE
MEDIUMwebsite/src/content/blog/2025-05-30-mcp/blog.md15[MCP servers](https://modelcontextprotocol.io/) are everywhere these days. People are integrating MCP servers into theirCODE
MEDIUM⚡packages/http-server-js/CHANGELOG.md120- [#7280](https://github.com/microsoft/typespec/pull/7280) Fixed an error in which the scaffolding script incorrectly coCODE
MEDIUM⚡packages/http-server-js/CHANGELOG.md128- [#7234](https://github.com/microsoft/typespec/pull/7234) Fixed a few bugs with output directory resolution logic in `hCODE
MEDIUM⚡packages/http-server-js/CHANGELOG.md129- [#7225](https://github.com/microsoft/typespec/pull/7225) Added a missing shebang line to `hsjs-scaffold` for better plCODE
MEDIUM⚡packages/http-server-js/CHANGELOG.md129- [#7225](https://github.com/microsoft/typespec/pull/7225) Added a missing shebang line to `hsjs-scaffold` for better plCODE
MEDIUMpackages/http-server-js/CHANGELOG.md162- [#6796](https://github.com/microsoft/typespec/pull/6796) Fixes the mocks in hsjs-scaffold to use bigints for large intCODE
MEDIUMpackages/http-server-js/CHANGELOG.md162- [#6796](https://github.com/microsoft/typespec/pull/6796) Fixes the mocks in hsjs-scaffold to use bigints for large intCODE
MEDIUMpackages/http-server-js/CHANGELOG.md180- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-js/CHANGELOG.md180- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-js/CHANGELOG.md215- [#5906](https://github.com/microsoft/typespec/pull/5906) Implement basic project scaffolding.CODE
MEDIUMpackages/http-client-python/eng/scripts/ci/util.py21# These are auto-generated test/sample scaffolding, not the actual SDK code.COMMENT
MEDIUMpackages/typespec-vscode/CHANGELOG.md143- [#7541](https://github.com/microsoft/typespec/pull/7541) Add extension API for other vscode extension to be able to reCODE
MEDIUM⚡packages/http-server-csharp/CHANGELOG.md244- [#6701](https://github.com/microsoft/typespec/pull/6701) Write scaffolding and project files in output dir and fix issCODE
MEDIUM⚡packages/http-server-csharp/CHANGELOG.md245- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUM⚡packages/http-server-csharp/CHANGELOG.md245- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/http-server-csharp/CHANGELOG.md293- [#5733](https://github.com/microsoft/typespec/pull/5733) Add scaffolding option for csharp generatorCODE
MEDIUMpackages/compiler/CHANGELOG.md830- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/compiler/CHANGELOG.md830- [#6710](https://github.com/microsoft/typespec/pull/6710) Updates to scaffolding script and scaffold commands for consiCODE
MEDIUMpackages/compiler/templates/scaffolding.json64 "message": "\n\tGenerated ASP.Net services require dotnet 9:\n\thttps://dotnet.microsoft.com/download \n\n\tCreaCODE
MEDIUMpackages/compiler/templates/scaffolding.json71 "message": "\n\tGenerated JavaScript services require a service runtime:\n\thttps://nodejs.org/download \n\n\tCrCODE
MEDIUMpackages/compiler/src/server/types.ts222 // with the compiler for multiple times in different steps (i.e. get core templates, validate the selected template, sCOMMENT
MEDIUM.github/agents/agentic-workflows.agent.md31- Configuration: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md54**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md66**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/update-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md78**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/debug-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md90**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/upgrade-agentic-workflows.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md102**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/create-shared-agentic-workflow.mdCODE
MEDIUM.github/agents/agentic-workflows.agent.md134# Initialize repository for agentic workflowsCOMMENT
MEDIUM.github/agents/agentic-workflows.agent.md162- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.50.1/.github/aw/github-agentic-workfCODE
Cross-Language Confusion14 hits · 82 pts
SeverityFileLineSnippetContext
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py29 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…sts/mock_api/shared/test_typetest_property_nullable.py42 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH⚡…sts/mock_api/shared/test_typetest_property_nullable.py58 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH⚡…sts/mock_api/shared/test_typetest_property_nullable.py68 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH⚡…sts/mock_api/shared/test_typetest_property_nullable.py78 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH⚡…sts/mock_api/shared/test_typetest_property_nullable.py88 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH⚡…sts/mock_api/shared/test_typetest_property_nullable.py98 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py32 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py46 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py63 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py74 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py85 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py96 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
HIGH…ed/asynctests/test_typetest_property_nullable_async.py107 assert '{"requiredProperty": "foo", "nullableProperty": null}' == json.dumps(non_model, cls=SdkJSONEncoder)CODE
Unused Imports75 hits · 71 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/conf.py10CODE
LOWpackages/http-client-python/eng/scripts/ci/conf.py11CODE
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py15CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py14CODE
LOW…ckages/http-client-python/eng/scripts/setup/install.py27CODE
LOW…ent-python/tests/unit/test_model_base_serialization.py5CODE
LOW…ck_api/azure/test_azure_client_generator_core_usage.py41CODE
LOW…_api/shared/test_typetest_model_usage_typeddictonly.py8CODE
LOW…_api/shared/test_typetest_model_usage_typeddictonly.py8CODE
LOW…s/mock_api/shared/test_typetest_property_valuetypes.py7CODE
LOW…sts/mock_api/shared/test_typetest_property_optional.py7CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py15CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py17CODE
LOW…ed/asynctests/test_typetest_property_optional_async.py7CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…tests/test_typetest_model_usage_typeddictonly_async.py9CODE
LOW…hon/generator/pygen/codegen/models/credential_types.py21CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py35CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py36CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py37CODE
LOW…-python/generator/pygen/codegen/models/base_builder.py38CODE
LOW…thon/generator/pygen/codegen/models/primitive_types.py15CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py17CODE
LOW…ython/generator/pygen/codegen/models/parameter_list.py38CODE
LOW…ient-python/generator/pygen/codegen/models/property.py16CODE
LOW…client-python/generator/pygen/codegen/models/client.py29CODE
LOW…client-python/generator/pygen/codegen/models/client.py30CODE
LOW…thon/generator/pygen/codegen/models/request_builder.py29CODE
LOW…thon/generator/pygen/codegen/models/request_builder.py30CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py8CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py9CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py9CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py11CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py12CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py16CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py39CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py42CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py52CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py53CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py54CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py55CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py60CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py66CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py70CODE
LOW…ient-python/generator/pygen/codegen/models/response.py19CODE
LOW…python/generator/pygen/codegen/models/combined_type.py14CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py43CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py44CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py45CODE
LOW…lient-python/generator/pygen/codegen/models/imports.py10CODE
LOW…ent-python/generator/pygen/codegen/models/enum_type.py14CODE
LOW…python/generator/pygen/codegen/models/lro_operation.py15CODE
15 more matches not shown…
Empty Error Handlers12 hits · 60 pts
SeverityFileLineSnippetContext
HIGH…ttp-client-python/eng/scripts/setup/package_manager.py53except (subprocess.CalledProcessError, FileNotFoundError, PermissionError):CODE
HIGHpackages/http-client-python/tests/conftest.py89except ProcessLookupError:CODE
HIGHpackages/http-client-python/tests/conftest.py95except Exception:CODE
HIGH…ts/mock_api/shared/test_multipart_filetype_variants.py31except Exception: # pylint: disable=broad-exceptCODE
HIGHpackages/http-client-python/generator/pygen/black.py58except NothingChanged:CODE
HIGHpackages/http-client-python/generator/pygen/__init__.py274except FileNotFoundError:CODE
HIGHpackages/http-client-python/generator/pygen/__init__.py282except FileNotFoundError:CODE
HIGHpackages/http-client-python/generator/pygen/utils.py115except ValueError:CODE
HIGH…ython/generator/pygen/codegen/models/parameter_list.py192except AttributeError:CODE
HIGH…ient-python/generator/pygen/codegen/models/__init__.py164except KeyError:CODE
HIGH…nt-python/generator/pygen/codegen/models/code_model.py250except KeyError:CODE
HIGH…erator/pygen/codegen/serializers/builder_serializer.py1644except StopIteration:CODE
Cross-Language Confusion (JS/TS)7 hits · 42 pts
SeverityFileLineSnippetContext
HIGH…ramework/test/testing/snippet-extractor-python.test.ts19 print("Hello")CODE
HIGH…ramework/test/testing/snippet-extractor-python.test.ts26 print("Hello")CODE
HIGH…nts/function-declaration/function-declaration.test.tsx227 print("Hello World!")CODE
HIGH⚡…kages/compiler/src/core/cli/actions/compile/compile.ts205 print("Compiler statistics:");CODE
HIGH⚡…kages/compiler/src/core/cli/actions/compile/compile.ts206 print(" Complexity:");CODE
HIGH⚡…kages/compiler/src/core/cli/actions/compile/compile.ts209 print(" Performance:");CODE
HIGH…kages/compiler/src/core/cli/actions/compile/compile.ts260 print(`${" ".repeat(indent)}${pc.gray(key)}: ${value}`);CODE
Deep Nesting41 hits · 34 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/util.py38CODE
LOW…ttp-client-python/eng/scripts/setup/package_manager.py59CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py91CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py106CODE
LOWpackages/http-client-python/tests/conftest.py100CODE
LOWpackages/http-client-python/generator/pygen/__init__.py64CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py29CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py258CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py445CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py569CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py600CODE
LOW…http-client-python/generator/pygen/codegen/__init__.py22CODE
LOW…http-client-python/generator/pygen/codegen/__init__.py39CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py319CODE
LOW…nt-python/generator/pygen/codegen/models/model_type.py437CODE
LOW…client-python/generator/pygen/codegen/models/client.py71CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py160CODE
LOW…ent-python/generator/pygen/codegen/models/operation.py311CODE
LOW…lient-python/generator/pygen/codegen/models/imports.py179CODE
LOW…ent-python/generator/pygen/codegen/models/enum_type.py267CODE
LOW…nt-python/generator/pygen/codegen/models/code_model.py184CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py702CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py849CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py936CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1080CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1154CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1465CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1596CODE
LOW…erator/pygen/codegen/serializers/builder_serializer.py1682CODE
LOW…enerator/pygen/codegen/serializers/types_serializer.py303CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py83CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py141CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py349CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py125CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py628CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py651CODE
LOW…ator/pygen/codegen/serializers/parameter_serializer.py55CODE
LOW…ator/pygen/codegen/serializers/parameter_serializer.py185CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py280CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py329CODE
LOW…enerator/pygen/codegen/serializers/model_serializer.py519CODE
Verbosity Indicators12 hits · 22 pts
SeverityFileLineSnippetContext
LOWpackages/http-server-js/src/util/case.ts117 // If we're in an acronym, we need to check if the next character is lower case.COMMENT
LOWpackages/http-client-python/emitter/src/utils.ts66 // To prevent that, first we need to check if s2 is undefined.COMMENT
LOW…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs249 // Step 1: Build all types (simulating CSharpGen.ExecuteAsync)COMMENT
LOW⚡…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs260 // Step 2: Visitor changes the parameter type from int to float,COMMENT
LOW⚡…t.TypeSpec.Generator/test/OutputLibraryVisitorTests.cs265 // Step 3: Apply customization filtering after visitorCOMMENT
LOW…t/typespec/http/client/generator/mgmt/FluentNamer.java83 // Step 2: TransformCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java68 // Step 1: Parse input yaml as CodeModelCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java71 // Step 2: MapCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java74 // Step 3: Write to templatesCOMMENT
LOW⚡…osoft/typespec/http/client/generator/core/Javagen.java77 // Step 4: Print to filesCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java68 // Step 1: post processCOMMENT
LOW…client/generator/core/postprocessor/Postprocessor.java114 // Step 2: Print to filesCOMMENT
Fake / Example Data16 hits · 20 pts
SeverityFileLineSnippetContext
LOWeng/common/CredScanSuppression.json5 "placeholder": ["abcdef12345", "Y0uW1llN3v3rGu3ss!"],CODE
LOWpackages/asset-emitter/src/builders/object-builder.ts5const placeholderSym = Symbol("placeholder");CODE
LOW⚡…_azure_resource_manager_multi_service_shared_models.py44 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW⚡…_azure_resource_manager_multi_service_shared_models.py57 created_by="user@example.com",CODE
LOW…_azure_resource_manager_multi_service_shared_models.py76 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW⚡…_azure_resource_manager_multi_service_shared_models.py95 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW⚡…_azure_resource_manager_multi_service_shared_models.py108 created_by="admin@example.com",CODE
LOW…_azure_resource_manager_multi_service_shared_models.py127 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW⚡…_resource_manager_multi_service_shared_models_async.py46 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW⚡…_resource_manager_multi_service_shared_models_async.py60 created_by="user@example.com",CODE
LOW…_resource_manager_multi_service_shared_models_async.py79 assert result.properties.metadata.created_by == "user@example.com"CODE
LOW⚡…_resource_manager_multi_service_shared_models_async.py99 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW⚡…_resource_manager_multi_service_shared_models_async.py113 created_by="admin@example.com",CODE
LOW…_resource_manager_multi_service_shared_models_async.py132 assert result.properties.metadata.created_by == "admin@example.com"CODE
LOW…vicesharedmodels/ArmMultiServiceSharedModelsTests.java29 SharedMetadata storageMetadata = new SharedMetadata().withCreatedBy("admin@example.com").withTags(storageTags);CODE
LOW…vicesharedmodels/ArmMultiServiceSharedModelsTests.java41 SharedMetadata vmMetadata = new SharedMetadata().withCreatedBy("user@example.com").withTags(vmTags);CODE
Excessive Try-Catch Wrapping17 hits · 20 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/eng/scripts/ci/util.py100 except Exception as e:CODE
LOW…kages/http-client-python/eng/scripts/ci/run_apiview.py40 except Exception as e:CODE
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py122 except Exception as e:CODE
LOW…ages/http-client-python/eng/scripts/setup/run_batch.py65 except Exception as e:CODE
LOW…ckages/http-client-python/eng/scripts/setup/install.py56 except Exception as e:CODE
MEDIUM…ckages/http-client-python/eng/scripts/setup/install.py58 print(f"Error: Installation failed despite Python and package manager being available: {e}")CODE
LOWpackages/http-client-python/tests/conftest.py91 except Exception:CODE
LOWpackages/http-client-python/tests/conftest.py95 except Exception:CODE
MEDIUMpackages/http-client-python/tests/install_packages.py115 print(f"Error installing packages: {e}")CODE
MEDIUMpackages/http-client-python/tests/install_packages.py146 print(f"Error: Unknown command or flavor '{sys.argv[1]}'")CODE
LOW…ts/mock_api/shared/test_multipart_filetype_variants.py31 except Exception: # pylint: disable=broad-exceptCODE
LOW…ests/mock_api/shared/unittests/test_parse_pyproject.py72 except Exception as e:CODE
LOWpackages/http-client-python/generator/pygen/__init__.py245 except Exception: # pylint: disable=broad-exceptCODE
LOW…erator/pygen/codegen/serializers/general_serializer.py93 except Exception: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py120 except Exception: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py625 except Exception as e: # pylint: disable=broad-exceptCODE
LOW…python/generator/pygen/codegen/serializers/__init__.py684 except Exception as e: # pylint: disable=broad-exceptCODE
Self-Referential Comments7 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMeng/common/scripts/labels/automation.ts48 const content = `# This file is generated by the sync-labels script DO NOT EDIT manually\n${cspell}${yaml}`;CODE
MEDIUM…http-client-python/eng/scripts/ci/regenerate-common.ts699 const DELETE_CONTENT = "# This file is to be deleted after regeneration";CODE
MEDIUM…http-client-python/eng/scripts/ci/regenerate-common.ts700 const KEEP_CONTENT = "# This file is to be kept after regeneration";CODE
MEDIUM…ttp-client-python/eng/scripts/setup/package_manager.py136 # Create a mock venv_context for compatibilityCOMMENT
MEDIUM.github/policies/issues.triage.generated.yml1# This file is generated by the sync-labels script DO NOT EDIT manuallyCOMMENT
MEDIUM.github/policies/prs.triage.generated.yml1# This file is generated by the sync-labels script DO NOT EDIT manuallyCOMMENT
MEDIUM.github/policies/prs.external-reviewers.generated.yml1# This file is generated by the sync-labels script DO NOT EDIT manuallyCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…ent-python/generator/pygen/codegen/models/enum_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
HIGH…python/generator/pygen/codegen/models/constant_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
HIGH…thon/generator/pygen/codegen/models/dictionary_type.py0returns the serialization value for msrest. :return: the serialization value for msrest :rtype: strSTRING
Modern Structural Boilerplate11 hits · 11 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/generator/pygen/__init__.py336 def update_yaml(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py143def update_paging_response(yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py569 def update_types(self, yaml_data: list[dict[str, Any]]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py600 def update_client(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py646 def update_parameter(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py729 def _update_lro_operation_helper(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py811 def update_operation_groups(self, code_model: dict[str, Any], client: dict[str, Any]) -> None:CODE
LOW…p-client-python/generator/pygen/preprocess/__init__.py835 def update_yaml(self, yaml_data: dict[str, Any]) -> None:CODE
LOW…ient-python/generator/pygen/codegen/models/__init__.py79__all__ = [CODE
LOW…erator/pygen/codegen/serializers/general_serializer.py60 def _update_version_map(self, version_map: dict[str, str], dep_name: str, dep: str) -> None:CODE
LOW…python/generator/pygen/codegen/serializers/__init__.py42__all__ = [CODE
AI Slop Vocabulary5 hits · 9 pts
SeverityFileLineSnippetContext
MEDIUM…rc/components/transforms/json/json-model-transform.tsx83 // Make the input optional to make the transform more robust and check against null and undefinedCOMMENT
LOW…/http-client-python/eng/scripts/ci/run_sphinx_build.py77 # If no submodules, just use the main packageCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py43 # this means we're version tolerant XML, we just return the XML elementCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py86 # this means we're version tolerant XML, we just return the XML elementCOMMENT
LOW…ent-python/generator/pygen/codegen/models/list_type.py92 # this means we're version tolerant XML, we just return the XML elementCOMMENT
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ests/mock_api/shared/unittests/test_parse_pyproject.py27 Get a specific section from a package's pyproject.toml file. Args: package_path: Relative path to the STRING
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpackages/http-client-python/tests/conftest.py108 # Check if server is already runningCOMMENT
LOW…erator/pygen/codegen/serializers/builder_serializer.py754 # Check if this is a typeddict-only model within dpg mode — skip serializationCOMMENT
LOW…erator/pygen/codegen/serializers/general_serializer.py121 # Check if dependency is one we track in version mapCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…s/test/output/petstore/@typespec/openapi3/openapi.yaml4 description: 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](httCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/xml/src/decorators.ts77function getData(CODE