Uber / uForwarder
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
properties
gitattributes
txt
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.

main24384 LOC (48%) 272 files
test25285 LOC (50%) 195 files
generated0 LOC (0%) 0 files
build and deployment609 LOC (1%) 18 files
other174 LOC (<1%) 6 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 ".*".
  • 272 files match defined criteria (24,384 LOC, 100.0% vs. main code):
    • 251 *.java files (22,236 LOC)
    • 13 *.proto files (1,107 LOC)
    • 5 *.html files (889 LOC)
    • 3 *.yaml files (152 LOC)
  • " *.java" is biggest, containing 91.19% of LOC.
  • " *.yaml" is smallest, containing 0.62% of LOC.


*.java22236 LOC (91%) 251 files
*.proto1107 LOC (4%) 13 files
*.html889 LOC (3%) 5 files
*.yaml152 LOC (<1%) 3 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 ".*/[Tt]est/.*".
  • 195 files match defined criteria (25,285 LOC, 103.7% vs. main code):
    • 186 *.java files (25,014 LOC)
    • 7 *.yaml files (228 LOC)
    • 1 *.py files (23 LOC)
    • 1 *.xml files (20 LOC)
  • " *.java" is biggest, containing 98.93% of LOC.
  • " *.xml" is smallest, containing 0.08% of LOC.


*.java25014 LOC (98%) 186 files
*.yaml228 LOC (<1%) 7 files
*.py23 LOC (<1%) 1 file
*.xml20 LOC (<1%) 1 file
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 ".*[.]gradle".
    • 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 ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]bat".
  • 18 files match defined criteria (609 LOC, 2.5% vs. main code):
    • 15 *.gradle files (495 LOC)
    • 1 *.bat files (71 LOC)
    • 2 *.sh files (43 LOC)
  • " *.gradle" is biggest, containing 81.28% of LOC.
  • " *.sh" is smallest, containing 7.06% of LOC.


*.gradle495 LOC (81%) 15 files
*.bat71 LOC (11%) 1 file
*.sh43 LOC (7%) 2 files
Other Code
properties
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 6 files match defined criteria (174 LOC, 0.7% vs. main code):
    • 2 *.md files (91 LOC)
    • 3 *.json files (78 LOC)
    • 1 *.properties files (5 LOC)
  • " *.md" is biggest, containing 52.3% of LOC.
  • " *.properties" is smallest, containing 2.87% of LOC.


*.md91 LOC (52%) 2 files
*.json78 LOC (44%) 3 files
*.properties5 LOC (2%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:40