alibaba / kubeskoop
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
proto
mod
ddl
gitattributes
stylelintignore
txt
eslintignore
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.

main34965 LOC (69%) 308 files
test8572 LOC (17%) 32 files
generated0 LOC (0%) 0 files
build and deployment165 LOC (<1%) 5 files
other6617 LOC (13%) 17 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
ddl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 308 files match defined criteria (34,965 LOC, 100.0% vs. main code):
    • 183 *.go files (25,928 LOC)
    • 37 *.tsx files (3,242 LOC)
    • 18 *.yaml files (1,898 LOC)
    • 11 *.h files (1,455 LOC)
    • 17 *.c files (1,040 LOC)
    • 16 *.ts files (489 LOC)
    • 19 *.css files (356 LOC)
    • 1 *.html files (337 LOC)
    • 4 *.proto files (199 LOC)
    • 2 *.ddl files (21 LOC)
  • " *.go" is biggest, containing 74.15% of LOC.
  • " *.ddl" is smallest, containing 0.06% of LOC.


*.go25928 LOC (74%) 183 files
*.tsx3242 LOC (9%) 37 files
*.yaml1898 LOC (5%) 18 files
*.h1455 LOC (4%) 11 files
*.c1040 LOC (2%) 17 files
*.ts489 LOC (1%) 16 files
*.css356 LOC (1%) 19 files
*.html337 LOC (<1%) 1 file
*.proto199 LOC (<1%) 4 files
*.ddl21 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/e2e/.*".
  • 32 files match defined criteria (8,572 LOC, 24.5% vs. main code):
    • 7 *.yaml files (5,321 LOC)
    • 25 *.go files (3,251 LOC)
  • " *.yaml" is biggest, containing 62.07% of LOC.
  • " *.go" is smallest, containing 37.93% of LOC.


*.yaml5321 LOC (62%) 7 files
*.go3251 LOC (37%) 25 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/package[.]json".
  • 5 files match defined criteria (165 LOC, 0.5% vs. main code). All matches are in *.sh files.


*.sh165 LOC (100%) 5 files
Other Code
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 ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]stylelintignore".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]eslintignore".
  • 17 files match defined criteria (6,617 LOC, 18.9% vs. main code):
    • 6 *.json files (5,543 LOC)
    • 3 *.svg files (481 LOC)
    • 6 *.md files (331 LOC)
    • 2 *.mod files (262 LOC)
  • " *.json" is biggest, containing 83.77% of LOC.
  • " *.mod" is smallest, containing 3.96% of LOC.


*.json5543 LOC (83%) 6 files
*.svg481 LOC (7%) 3 files
*.md331 LOC (5%) 6 files
*.mod262 LOC (3%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:55