Uber / cadence-web
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
styl
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.

main19195 LOC (65%) 492 files
test9221 LOC (31%) 119 files
generated0 LOC (0%) 0 files
build and deployment111 LOC (<1%) 2 files
other609 LOC (2%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
styl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 492 files match defined criteria (19,195 LOC, 100.0% vs. main code):
    • 68 *.vue files (9,747 LOC)
    • 417 *.js files (8,371 LOC)
    • 7 *.styl files (1,077 LOC)
  • " *.vue" is biggest, containing 50.78% of LOC.
  • " *.styl" is smallest, containing 5.61% of LOC.


*.vue9747 LOC (50%) 68 files
*.js8371 LOC (43%) 417 files
*.styl1077 LOC (5%) 7 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/.*".
    • files with paths like ".*/jest[.][a-zA-Z0-9\.]+".
    • files with paths like ".*[.]spec[.]js".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*/__mocks?__/.*".
  • 119 files match defined criteria (9,221 LOC, 48.0% vs. main code):
    • 115 *.js files (9,121 LOC)
    • 4 *.vue files (100 LOC)
  • " *.js" is biggest, containing 98.92% of LOC.
  • " *.vue" is smallest, containing 1.08% of LOC.


*.js9121 LOC (98%) 115 files
*.vue100 LOC (1%) 4 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 ".*([.]|/)webpack([.]|/).*".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[.]json".
  • 2 files match defined criteria (111 LOC, 0.6% vs. main code):
    • 1 *.js files (97 LOC)
    • 1 *.yml files (14 LOC)
  • " *.js" is biggest, containing 87.39% of LOC.
  • " *.yml" is smallest, containing 12.61% of LOC.


*.js97 LOC (87%) 1 file
*.yml14 LOC (12%) 1 file
Other Code
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]svg".
  • 22 files match defined criteria (609 LOC, 3.2% vs. main code):
    • 18 *.md files (382 LOC)
    • 3 *.json files (222 LOC)
    • 1 *.svg files (5 LOC)
  • " *.md" is biggest, containing 62.73% of LOC.
  • " *.svg" is smallest, containing 0.82% of LOC.


*.md382 LOC (62%) 18 files
*.json222 LOC (36%) 3 files
*.svg5 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:35