apache / servicecomb-service-center
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
mod
tpl
txt
proto
editorconfig
gitmodules
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.

main47187 LOC (57%) 666 files
test27397 LOC (33%) 204 files
generated0 LOC (0%) 0 files
build and deployment434 LOC (<1%) 24 files
other7638 LOC (9%) 98 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 666 files match defined criteria (47,187 LOC, 100.0% vs. main code):
    • 528 *.go files (39,601 LOC)
    • 43 *.ts files (2,588 LOC)
    • 28 *.js files (2,039 LOC)
    • 37 *.html files (1,948 LOC)
    • 1 *.css files (368 LOC)
    • 21 *.less files (298 LOC)
    • 6 *.yaml files (296 LOC)
    • 2 *.proto files (49 LOC)
  • " *.go" is biggest, containing 83.92% of LOC.
  • " *.proto" is smallest, containing 0.1% of LOC.


*.go39601 LOC (83%) 528 files
*.ts2588 LOC (5%) 43 files
*.js2039 LOC (4%) 28 files
*.html1948 LOC (4%) 37 files
*.css368 LOC (<1%) 1 file
*.less298 LOC (<1%) 21 files
*.yaml296 LOC (<1%) 6 files
*.proto49 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 ".*/[Tt]est/.*".
    • files with paths like ".*/test[.].*".
  • 204 files match defined criteria (27,397 LOC, 58.1% vs. main code):
    • 202 *.go files (27,339 LOC)
    • 2 *.sh files (58 LOC)
  • " *.go" is biggest, containing 99.79% of LOC.
  • " *.sh" is smallest, containing 0.21% of LOC.


*.go27339 LOC (99%) 202 files
*.sh58 LOC (<1%) 2 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 ".*/docker[-]compose[.]yaml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/package[.]json".
  • 24 files match defined criteria (434 LOC, 0.9% vs. main code):
    • 21 *.sh files (392 LOC)
    • 2 *.bat files (30 LOC)
    • 1 *.yaml files (12 LOC)
  • " *.sh" is biggest, containing 90.32% of LOC.
  • " *.yaml" is smallest, containing 2.76% of LOC.


*.sh392 LOC (90%) 21 files
*.bat30 LOC (6%) 2 files
*.yaml12 LOC (2%) 1 file
Other Code
mod
tpl
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]editorconfig".
  • 98 files match defined criteria (7,638 LOC, 16.2% vs. main code):
    • 22 *.json files (4,719 LOC)
    • 30 *.yaml files (1,122 LOC)
    • 18 *.md files (723 LOC)
    • 5 *.mod files (437 LOC)
    • 7 *.go files (335 LOC)
    • 11 *.sh files (128 LOC)
    • 3 *.tpl files (97 LOC)
    • 2 *.txt files (77 LOC)
  • " *.json" is biggest, containing 61.78% of LOC.
  • " *.txt" is smallest, containing 1.01% of LOC.


*.json4719 LOC (61%) 22 files
*.yaml1122 LOC (14%) 30 files
*.md723 LOC (9%) 18 files
*.mod437 LOC (5%) 5 files
*.go335 LOC (4%) 7 files
*.sh128 LOC (1%) 11 files
*.tpl97 LOC (1%) 3 files
*.txt77 LOC (1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:56