openai / kubernetes
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
pb
proto
s
mod
in
gitattributes
mo
po
sed
editorconfig
jsonl
mdown
cfg
  • 31 extensions are included in analyses: go, yaml, json, md, pb, sh, proto, gitignore, s, mod, txt, in, gitattributes, mo, po, py, sed, c, editorconfig, svg, psm1, jsonl, toml, ps1, bash, html, mdown, g4, markdown, cfg, dockerfile
  • 7 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/testdata/.*" (Test data) (6297 files).
    • exclude files with path like ".*/cache/.*" (Caches) (99 files).
    • exclude files with path like ".*/extern(al)?/.*" (Dependencies) (5 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (62 files).
    • exclude files with path like ".*/docs/.*" (Documentation) (6 files).
    • exclude files with path like ".*/[Vv]endors?/.*" (Dependencies) (4761 files).
    • exclude files with path like ".*/target/.*" (Compiled files) (0 files).
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main729974 LOC (28%) 7,208 files
test1307309 LOC (51%) 4,116 files
generated355097 LOC (13%) 1,226 files
build and deployment37160 LOC (1%) 268 files
other118546 LOC (4%) 804 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
mo
in
sed
jsonl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 7208 files match defined criteria (729,974 LOC, 100.0% vs. main code):
    • 6,903 *.go files (657,389 LOC)
    • 95 *.proto files (34,609 LOC)
    • 178 *.yaml files (28,638 LOC)
    • 10 *.mo files (4,315 LOC)
    • 4 *.psm1 files (3,302 LOC)
    • 3 *.in files (690 LOC)
    • 6 *.sed files (447 LOC)
    • 3 *.py files (276 LOC)
    • 1 *.ps1 files (186 LOC)
    • 3 *.c files (104 LOC)
    • 2 *.jsonl files (18 LOC)
  • " *.go" is biggest, containing 90.06% of LOC.
  • " *.jsonl" is smallest, containing 0% of LOC.


*.go657389 LOC (90%) 6,903 files
*.proto34609 LOC (4%) 95 files
*.yaml28638 LOC (3%) 178 files
*.mo4315 LOC (<1%) 10 files
*.psm13302 LOC (<1%) 4 files
*.in690 LOC (<1%) 3 files
*.sed447 LOC (<1%) 6 files
*.py276 LOC (<1%) 3 files
*.ps1186 LOC (<1%) 1 file
*.c104 LOC (<1%) 3 files
*.jsonl18 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
in
mo
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/e2e/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/[Ss]pecs/.*".
    • files with paths like ".*/testing[.].*".
    • files with paths like ".*_mock[.][a-zA-Z0-9_\-]+".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_tests[.].*".
  • 4116 files match defined criteria (1,307,309 LOC, 179.1% vs. main code):
    • 3,597 *.go files (1,272,010 LOC)
    • 402 *.yaml files (24,813 LOC)
    • 82 *.sh files (9,731 LOC)
    • 20 *.in files (452 LOC)
    • 4 *.py files (192 LOC)
    • 1 *.ps1 files (65 LOC)
    • 2 *.mo files (26 LOC)
    • 7 *.gitignore files (19 LOC)
    • 1 *.html files (1 LOC)
  • " *.go" is biggest, containing 97.3% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.go1272010 LOC (97%) 3,597 files
*.yaml24813 LOC (1%) 402 files
*.sh9731 LOC (<1%) 82 files
*.in452 LOC (<1%) 20 files
*.py192 LOC (<1%) 4 files
*.ps165 LOC (<1%) 1 file
*.mo26 LOC (<1%) 2 files
*.gitignore19 LOC (<1%) 7 files
*.html1 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/zz_generated[.].*[.]go".
    • files with any line of content like "// This file was generated .*".
    • files with paths like ".*/generated/.*".
    • files with paths like ".*/generated[.].*[.]go".
    • files with paths like ".*_generated[.][a-z]+".
    • files with paths like ".*/gen/.*[.]go".
  • 1226 files match defined criteria (355,097 LOC, 48.6% vs. main code):
    • 1,222 *.go files (354,812 LOC)
    • 4 *.sh files (285 LOC)
  • " *.go" is biggest, containing 99.92% of LOC.
  • " *.sh" is smallest, containing 0.08% of LOC.


*.go354812 LOC (99%) 1,222 files
*.sh285 LOC (<1%) 4 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
mod
gitattributes
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/cloudbuild[.]ya?ml".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like "(.*/)?[.]editorconfig".
    • files with paths like ".*/glide[.]yaml".
  • 268 files match defined criteria (37,160 LOC, 5.1% vs. main code):
    • 217 *.sh files (34,304 LOC)
    • 35 *.mod files (2,713 LOC)
    • 11 *.gitignore files (109 LOC)
    • 1 *.yaml files (19 LOC)
    • 4 *.gitattributes files (15 LOC)
  • " *.sh" is biggest, containing 92.31% of LOC.
  • " *.gitattributes" is smallest, containing 0.04% of LOC.


*.sh34304 LOC (92%) 217 files
*.mod2713 LOC (7%) 35 files
*.gitignore109 LOC (<1%) 11 files
*.yaml19 LOC (<1%) 1 file
*.gitattributes15 LOC (<1%) 4 files
Other Code
po
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]pb".
    • files with paths like ".*/INSTALL[.][a-z0-9]+".
    • files with paths like ".*/vendor/.*".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]mdown".
    • files with paths like ".*/COPYING[.][a-z0-9]+".
  • 804 files match defined criteria (118,546 LOC, 16.2% vs. main code):
    • 275 *.md files (61,565 LOC)
    • 12 *.po files (24,637 LOC)
    • 376 *.go files (15,305 LOC)
    • 114 *.json files (10,591 LOC)
    • 4 *.yaml files (6,048 LOC)
    • 17 *.txt files (212 LOC)
    • 4 *.sh files (134 LOC)
    • 1 *.mod files (52 LOC)
    • 1 *.gitignore files (2 LOC)
  • " *.md" is biggest, containing 51.93% of LOC.
  • " *.gitignore" is smallest, containing 0% of LOC.


*.md61565 LOC (51%) 275 files
*.po24637 LOC (20%) 12 files
*.go15305 LOC (12%) 376 files
*.json10591 LOC (8%) 114 files
*.yaml6048 LOC (5%) 4 files
*.txt212 LOC (<1%) 17 files
*.sh134 LOC (<1%) 4 files
*.mod52 LOC (<1%) 1 file
*.gitignore2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.go files are analyzed with GoLangAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.proto files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.mo files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.psm1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.in files are analyzed with RustAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.sed files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.py files are analyzed with PythonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.ps1 files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.c files are analyzed with CStyleAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.jsonl files are analyzed with JsonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2026-06-24 10:55