Uber / aresdb
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
txt
mod
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.

main57256 LOC (56%) 356 files
test38971 LOC (38%) 246 files
generated2211 LOC (2%) 11 files
build and deployment13 LOC (<1%) 2 files
other2838 LOC (2%) 20 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 356 files match defined criteria (57,256 LOC, 100.0% vs. main code):
    • 281 *.go files (43,083 LOC)
    • 20 *.cu files (6,250 LOC)
    • 9 *.hpp files (3,813 LOC)
    • 13 *.js files (1,965 LOC)
    • 13 *.html files (626 LOC)
    • 1 *.g4 files (519 LOC)
    • 4 *.h files (466 LOC)
    • 10 *.yaml files (319 LOC)
    • 1 *.c files (121 LOC)
    • 4 *.css files (94 LOC)
  • " *.go" is biggest, containing 75.25% of LOC.
  • " *.css" is smallest, containing 0.16% of LOC.


*.go43083 LOC (75%) 281 files
*.cu6250 LOC (10%) 20 files
*.hpp3813 LOC (6%) 9 files
*.js1965 LOC (3%) 13 files
*.html626 LOC (1%) 13 files
*.g4519 LOC (<1%) 1 file
*.h466 LOC (<1%) 4 files
*.yaml319 LOC (<1%) 10 files
*.c121 LOC (<1%) 1 file
*.css94 LOC (<1%) 4 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 ".*/[Mm]ocks/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 246 files match defined criteria (38,971 LOC, 68.1% vs. main code):
    • 244 *.go files (38,952 LOC)
    • 1 *.avsc files (13 LOC)
    • 1 *.js files (6 LOC)
  • " *.go" is biggest, containing 99.95% of LOC.
  • " *.js" is smallest, containing 0.02% of LOC.


*.go38952 LOC (99%) 244 files
*.avsc13 LOC (<1%) 1 file
*.js6 LOC (<1%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 11 files match defined criteria (2,211 LOC, 3.9% vs. main code):
    • 8 *.go files (2,047 LOC)
    • 3 *.proto files (164 LOC)
  • " *.go" is biggest, containing 92.58% of LOC.
  • " *.proto" is smallest, containing 7.42% of LOC.


*.go2047 LOC (92%) 8 files
*.proto164 LOC (7%) 3 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]sh".
  • 2 files match defined criteria (13 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh13 LOC (100%) 2 files
Other Code
txt
mod
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/go[.]mod".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
  • 20 files match defined criteria (2,838 LOC, 5.0% vs. main code):
    • 9 *.json files (1,955 LOC)
    • 2 *.go files (336 LOC)
    • 1 *.txt files (295 LOC)
    • 6 *.md files (199 LOC)
    • 1 *.mod files (50 LOC)
    • 1 *.sql files (3 LOC)
  • " *.json" is biggest, containing 68.89% of LOC.
  • " *.sql" is smallest, containing 0.11% of LOC.


*.json1955 LOC (68%) 9 files
*.go336 LOC (11%) 2 files
*.txt295 LOC (10%) 1 file
*.md199 LOC (7%) 6 files
*.mod50 LOC (1%) 1 file
*.sql3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:39