Confluent's Apache Kafka Golang client
This report summarizes scanner evidence for confluentinc/confluent-kafka-go, a HTML project with 5,175 GitHub stars. SynthScan examined 104,283 lines of code across 323 source files, recording 143 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 1.4 (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? 142 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 143 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 143 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | schemaregistry/confluent/codegen.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | schemaregistry/confluent/types/doc.go | 1 | // Package types held the generated confluent.type.Decimal bindings until they moved to the | COMMENT |
| LOW | schemaregistry/cache/cache.go | 21 | // Get returns the cache value associated with key | COMMENT |
| LOW | schemaregistry/test/secrets/generate_secrets_linux.sh | 1 | #!/bin/bash | COMMENT |
| LOW | schemaregistry/internal/client_config.go | 41 | BearerAuthToken string | COMMENT |
| LOW | schemaregistry/rules/cel/cel_container_test.go | 21 | // Three separate defects met here, all invisible while every fixture used scalar fields: | COMMENT |
| LOW | schemaregistry/rules/cel/lib.go | 41 | func DefaultEnv() (*cel.Env, error) { | COMMENT |
| LOW | schemaregistry/rules/cel/lib.go | 81 | // base env's adapter instead would capture a registry that never learns those descriptors, and | COMMENT |
| LOW | schemaregistry/rules/cel/lib.go | 121 | // | COMMENT |
| LOW | schemaregistry/rules/cel/lib.go | 141 | } | COMMENT |
| LOW | schemaregistry/rules/cel/decimal_util_test.go | 101 | tc.in, got.Precision, got.Scale, tc.precision, tc.scale) | COMMENT |
| LOW | schemaregistry/rules/cel/decimal_util_test.go | 221 | Value: []byte{0x01}, Scale: scale, | COMMENT |
| LOW | schemaregistry/rules/cel/decimal.go | 41 | const decimalTypeName = "confluent.type.Decimal" | COMMENT |
| LOW | schemaregistry/rules/cel/decimal.go | 61 | ) | COMMENT |
| LOW | schemaregistry/rules/cel/decimal.go | 141 | // decimalBoundaryValue presents a decimal-shaped native value as this package's CEL decimal. | COMMENT |
| LOW | schemaregistry/rules/cel/decimal.go | 801 | return fmt.Errorf("scale %d cannot be represented", scale) | COMMENT |
| LOW | schemaregistry/rules/cel/decimal.go | 821 | return nil | COMMENT |
| LOW | schemaregistry/rules/cel/cel_message_transform_test.go | 241 | // result map with. Measured against protobuf-java 4.35.1: | COMMENT |
| LOW | schemaregistry/rules/cel/cel_validator.go | 81 | // A decimal-shaped value is presented as this package's CEL decimal so that a bare decimal | COMMENT |
| LOW | schemaregistry/rules/cel/cel_null_avro_field_test.go | 1 | package cel | COMMENT |
| LOW | schemaregistry/rules/cel/cel_executor.go | 281 | return cel.DynType | COMMENT |
| LOW | schemaregistry/rules/cel/avro_result_writer.go | 101 | // Slice from this node's offset, not from 0: a Variant from | COMMENT |
| LOW | schemaregistry/rules/cel/avro_result_writer.go | 261 | // maxAvroDecimalWidth bounds the positional form this writer will build, the same 10^7 digits | COMMENT |
| LOW | schemaregistry/rules/cel/cel_decimal_timestamp_test.go | 781 | // cannot see. Text('f') writes a zero as "0" at every non-positive scale, and 500 as "500" | COMMENT |
| LOW | schemaregistry/rules/cel/cel_decimal_timestamp_test.go | 841 | // min(preferred, minimalScale + (38 - minimalPrecision)), floored at the minimal scale. | COMMENT |
| LOW | schemaregistry/rules/cel/protobuf_result_writer.go | 41 | // A CEL rule returning a map is returning the whole new message: the transform has replace | COMMENT |
| LOW | schemaregistry/rules/cel/protobuf_result_writer.go | 121 | _, ok := value.(structpb.NullValue) | COMMENT |
| LOW | schemaregistry/rules/cel/protobuf_result_writer.go | 141 | // Measured against protobuf-java. A proto3 optional field sits in a synthetic oneof of exactly | COMMENT |
| LOW | schemaregistry/rules/cel/protobuf_result_writer.go | 321 | // when computed. | COMMENT |
| LOW | schemaregistry/rules/cel/protobuf_result_writer.go | 401 | return fmt.Errorf("cannot write %T to %s", value, fullName) | COMMENT |
| LOW | schemaregistry/rules/cel/decimal_util.go | 61 | // Precision is the unscaled value's digit count, as BigDecimal.precision() reports it | COMMENT |
| LOW | schemaregistry/rules/cel/decimal_util.go | 81 | // recovered from the reduced denominator (see terminatingScale) rather than read off a literal | COMMENT |
| LOW | schemaregistry/serde/config.go | 21 | // AutoRegisterSchemas determines whether to automatically register schemas during serialization | COMMENT |
| LOW | schemaregistry/serde/serde.go | 441 | Tags map[string]bool | COMMENT |
| LOW | schemaregistry/serde/serde.go | 901 | } | COMMENT |
| LOW | schemaregistry/serde/kafka_builder.go | 21 | COMMENT | |
| LOW | schemaregistry/serde/kafka_builder.go | 61 | } | COMMENT |
| LOW | schemaregistry/serde/map_key.go | 21 | "reflect" | COMMENT |
| LOW | schemaregistry/serde/avrov2/avro.go | 141 | // | COMMENT |
| LOW | schemaregistry/serde/avrov2/avro.go | 321 | COMMENT | |
| LOW | schemaregistry/serde/avrov2/avro.go | 361 | } | COMMENT |
| LOW | schemaregistry/serde/avrov2/avro_util.go | 201 | fieldValue = val.Interface() | COMMENT |
| LOW | schemaregistry/serde/avrov2/avro_validate.go | 21 | "reflect" | COMMENT |
| LOW | schemaregistry/serde/avrov2/cel_null_transform_test.go | 21 | // The reference states the contract in CelFieldExecutor: CEL null is normalized to a Java null | COMMENT |
| LOW | schemaregistry/serde/avrov2/doc.go | 21 | // prefer package avrov3, which uses Confluent's maintained fork | COMMENT |
| LOW | …gistry/serde/avrov2/cel_avro_message_transform_test.go | 21 | // This case existed only on the protobuf side, and its absence hid a real defect elsewhere - | COMMENT |
| LOW | schemaregistry/serde/jsonschema/json_schema_validate.go | 21 | "reflect" | COMMENT |
| LOW | schemaregistry/serde/jsonschema/json_schema.go | 141 | // are left alone. It cannot be combined with SetSchemaRegistryConfig: Build | COMMENT |
| LOW | schemaregistry/serde/jsonschema/json_schema.go | 321 | // [kafka.DeserializingConsumer] uses for its keys or its values. Its setters | COMMENT |
| LOW | schemaregistry/serde/jsonschema/json_schema.go | 361 | // SetSchemaRegistryClient supplies an already created Schema Registry client, | COMMENT |
| LOW | schemaregistry/serde/avrov3/avro.go | 141 | // | COMMENT |
| LOW | schemaregistry/serde/avrov3/avro.go | 321 | COMMENT | |
| LOW | schemaregistry/serde/avrov3/avro.go | 361 | } | COMMENT |
| LOW | schemaregistry/serde/avrov3/avro_util.go | 201 | fieldValue = val.Interface() | COMMENT |
| LOW | schemaregistry/serde/avrov3/avro_validate.go | 21 | "reflect" | COMMENT |
| LOW | schemaregistry/serde/avrov3/cel_null_transform_test.go | 21 | // The reference states the contract in CelFieldExecutor: CEL null is normalized to a Java null | COMMENT |
| LOW | schemaregistry/serde/avrov3/doc.go | 21 | // The github.com/hamba/avro/v2 library used by package avrov2 is now | COMMENT |
| LOW | schemaregistry/serde/variant/variant_test.go | 1 | // Copyright 2026 Confluent Inc. | COMMENT |
| LOW | schemaregistry/serde/variant/variant.go | 1 | // Copyright 2026 Confluent Inc. | COMMENT |
| LOW | schemaregistry/serde/variant/variant.go | 981 | // carry no offset, so they are ISO-8601 local date-times rather than RFC 3339 (which has no | COMMENT |
| 81 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ative_consumer_example/cooperative_consumer_example.go | 19 | // seamless reassignment of partitions to other group members. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …aregistry/rules/encryption/azurekms/azure_aead_test.go | 38 | return azcore.AccessToken{Token: "fake-token"}, nil | CODE |