Go client for Kubernetes.
This report presents the forensic synthetic code analysis of kubernetes/client-go, a Go project with 9,870 GitHub stars. SynthScan v2.0 examined 375,936 lines of code across 2477 source files, recording 1506 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.1 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1506 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | doc.go | 21 | // # Key Packages | COMMENT |
| LOW | doc.go | 41 | // - rest: Provides a lower-level RESTClient that manages the details of | COMMENT |
| LOW | doc.go | 61 | // | COMMENT |
| LOW | doc.go | 81 | // share management of an object by tracking field ownership. This prevents | COMMENT |
| LOW | doc.go | 101 | // read-only access to the cache, and Workqueues decouple event detection | COMMENT |
| LOW | informers/factory.go | 261 | informer.SetTransform(f.transform) | COMMENT |
| LOW | informers/factory.go | 281 | // return fmt.Errorf("register event handler: %v", err) | COMMENT |
| LOW | informers/factory.go | 301 | // // Start must be called again: | COMMENT |
| LOW | informers/factory.go | 321 | // doing anything. | COMMENT |
| LOW | tools/metrics/metrics.go | 41 | COMMENT | |
| LOW | tools/metrics/metrics.go | 141 | // RequestLatency is the latency metric that rest clients will update. | COMMENT |
| LOW | tools/record/event.go | 61 | LRUCacheSize int | COMMENT |
| LOW | tools/record/event.go | 81 | // If not specified (zero value), the default specified in events_cache.go will be picked | COMMENT |
| LOW | tools/record/event.go | 121 | // WithLogger replaces the context used for logging. This is a cheap call | COMMENT |
| LOW | tools/record/event_test.go | 141 | // | COMMENT |
| LOW | tools/record/events_cache.go | 221 | } | COMMENT |
| LOW | tools/record/events_cache.go | 401 | // EventCorrelator processes all incoming events and performs analysis to avoid overwhelming the system. It can filter | COMMENT |
| LOW | tools/record/events_cache.go | 421 | Skip bool | COMMENT |
| LOW | tools/cache/index.go | 21 | COMMENT | |
| LOW | tools/cache/shared_informer.go | 41 | "k8s.io/klog/v2" | COMMENT |
| LOW | tools/cache/shared_informer.go | 61 | // A SharedInformer maintains a local cache --- exposed by GetStore(), | COMMENT |
| LOW | tools/cache/shared_informer.go | 81 | // | COMMENT |
| LOW | tools/cache/shared_informer.go | 101 | // objects, and are simply the name for non-namespaced objects. | COMMENT |
| LOW | tools/cache/shared_informer.go | 121 | // corresponding index updates. It is possible that additional cache | COMMENT |
| LOW | tools/cache/shared_informer.go | 141 | // | COMMENT |
| LOW | tools/cache/shared_informer.go | 161 | // any interactions with the authoritative storage. Some | COMMENT |
| LOW | tools/cache/shared_informer.go | 181 | // | COMMENT |
| LOW | tools/cache/shared_informer.go | 201 | // The informer will be stopped when the context is canceled. | COMMENT |
| LOW | tools/cache/shared_informer.go | 221 | // thread-safe. | COMMENT |
| LOW | tools/cache/shared_informer.go | 241 | // SetWatchErrorHandlerWithContext is a variant of SetWatchErrorHandler where | COMMENT |
| LOW | tools/cache/shared_informer.go | 261 | COMMENT | |
| LOW | tools/cache/shared_informer.go | 421 | lw, | COMMENT |
| LOW | tools/cache/shared_informer.go | 561 | // while waiting ("Waiting", for="<what>"). Verbosity is V(0). This can | COMMENT |
| LOW | tools/cache/shared_informer.go | 661 | // Under the hood such factories use [WaitFor] to wait for all instantiated informers, | COMMENT |
| LOW | tools/cache/shared_informer.go | 701 | // a DeltaFIFO --- whose knownObjects is the informer's local cache | COMMENT |
| LOW | tools/cache/shared_informer.go | 1341 | // runs `pop()`, which pumps notifications from `addCh` to `nextCh` | COMMENT |
| LOW | tools/cache/shared_informer.go | 1361 | handlerName string | COMMENT |
| LOW | tools/cache/shared_informer.go | 1381 | // in AddEventHandlerWithResyncPeriod invocations made after the | COMMENT |
| LOW | tools/cache/controller.go | 41 | // example in | COMMENT |
| LOW | tools/cache/controller.go | 61 | // For batch processing to be used: | COMMENT |
| LOW | tools/cache/controller.go | 81 | // negative performance impact on controlplane. | COMMENT |
| LOW | tools/cache/controller.go | 121 | clock clock.Clock | COMMENT |
| LOW | tools/cache/controller.go | 261 | } | COMMENT |
| LOW | tools/cache/controller.go | 301 | type TypedResourceEventHandler[T Object] interface { | COMMENT |
| LOW | tools/cache/controller.go | 321 | // | COMMENT |
| LOW | tools/cache/controller.go | 641 | COMMENT | |
| LOW | tools/cache/controller.go | 661 | // Transform function, if set, will be called on all objects before they will be | COMMENT |
| LOW | tools/cache/controller.go | 681 | var clientState Store | COMMENT |
| LOW | tools/cache/controller.go | 721 | return clientState, newInformer(clientState, options, DeletionHandlingMetaNamespaceKeyFunc) | COMMENT |
| LOW | tools/cache/the_real_fifo_test.go | 161 | f.Add(obj) | COMMENT |
| LOW | tools/cache/store.go | 21 | "fmt" | COMMENT |
| LOW | tools/cache/store.go | 141 | // the object but not the object itself. | COMMENT |
| LOW | tools/cache/fifo.go | 41 | // Pop blocks until there is at least one key to process or the | COMMENT |
| LOW | tools/cache/fifo.go | 61 | // HasSyncedChecker is done once the first batch of keys have all been | COMMENT |
| LOW | tools/cache/fifo.go | 81 | COMMENT | |
| LOW | tools/cache/fifo.go | 101 | // object's key is in the queue before it has been processed then it | COMMENT |
| LOW | tools/cache/informer_metrics.go | 41 | // The returned metric should check id.Reserved() before updating to support | COMMENT |
| LOW | tools/cache/expiration_cache.go | 21 | "time" | COMMENT |
| LOW | tools/cache/reflector.go | 101 | ReflectorStore | COMMENT |
| LOW | tools/cache/reflector.go | 121 | expectedGVK *schema.GroupVersionKind | COMMENT |
| 1425 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | example_test.go | 187 | // have more robust logic and a workqueue. | COMMENT |
| MEDIUM | doc.go | 91 | // found or already exists. This allows controllers to implement robust, | COMMENT |
| MEDIUM | tools/cache/reflector.go | 896 | // we utilize the temporaryStore to ensure independence from the current store implementation. | COMMENT |
| MEDIUM | …igurations/core/v1/nodeallocatableoverheadresources.go | 34 | // Adding to each container limit allows individual containers to utilize the overhead, while the parent pod-level cgro | COMMENT |
| MEDIUM | applyconfigurations/core/v1/endpointsubset.go | 41 | // should be considered safe for load balancers and clients to utilize. | COMMENT |
| MEDIUM | applyconfigurations/resource/v1/celdeviceselector.go | 66 | // A robust expression should check for the existence of attributes | COMMENT |
| MEDIUM | …lyconfigurations/resource/v1/devicederivedattribute.go | 58 | // extremely hard to detect. A robust expression should, for example, check | COMMENT |
| MEDIUM | …lyconfigurations/resource/v1beta2/celdeviceselector.go | 66 | // A robust expression should check for the existence of attributes | COMMENT |
| MEDIUM | …figurations/resource/v1beta2/devicederivedattribute.go | 58 | // extremely hard to detect. A robust expression should, for example, check | COMMENT |
| MEDIUM | …lyconfigurations/resource/v1beta1/celdeviceselector.go | 66 | // A robust expression should check for the existence of attributes | COMMENT |
| MEDIUM | …figurations/resource/v1beta1/devicederivedattribute.go | 58 | // extremely hard to detect. A robust expression should, for example, check | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | applyconfigurations/apps/v1/statefulset.go | 36 | // - Storage: As many VolumeClaims as requested. | COMMENT |
| HIGH | applyconfigurations/apps/v1beta2/statefulset.go | 38 | // - Storage: As many VolumeClaims as requested. | COMMENT |
| HIGH | applyconfigurations/apps/v1beta1/statefulset.go | 38 | // - Storage: As many VolumeClaims as requested. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | dynamic/fake/simple_test.go | 307 | // TODO: Add tests for strategic merge using v1.Pod for example to ensure the test cases | COMMENT |
| LOW | metadata/fake/simple_test.go | 200 | // TODO: Add tests for strategic merge using v1.Pod for example to ensure the test cases | COMMENT |
| LOW | rest/request.go | 1186 | // TODO: Add test for this. Steps may be: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/cache/fifo_test.go | 83 | // NOTE: This function is deprecated and may be removed in the future without | COMMENT |
| LOW | discovery/discovery_client.go | 763 | // NOTE: This function is resilient to the ordering of the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/watch/retrywatcher.go | 101 | // and we need to check if stop wasn't requested while doing so. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/clientcmd/client_config_test.go | 1256 | if err := os.WriteFile(keyFile.Name(), []byte("dummy-key-content"), 0600); err != nil { | CODE |