Uber / nanoscope-art
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
s
txt
smali
mk
in
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.

main300981 LOC (67%) 1,138 files
test128447 LOC (28%) 1,334 files
generated0 LOC (0%) 0 files
build and deployment4789 LOC (1%) 40 files
other14864 LOC (3%) 984 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 ".*".
  • 1138 files match defined criteria (300,981 LOC, 100.0% vs. main code):
    • 373 *.cc files (201,964 LOC)
    • 547 *.h files (76,252 LOC)
    • 186 *.java files (13,099 LOC)
    • 3 *.inc files (5,764 LOC)
    • 26 *.py files (3,819 LOC)
    • 1 *.html files (60 LOC)
    • 1 *.css files (12 LOC)
    • 1 *.pl files (11 LOC)
  • " *.cc" is biggest, containing 67.1% of LOC.
  • " *.pl" is smallest, containing 0% of LOC.


*.cc201964 LOC (67%) 373 files
*.h76252 LOC (25%) 547 files
*.java13099 LOC (4%) 186 files
*.inc5764 LOC (1%) 3 files
*.py3819 LOC (1%) 26 files
*.html60 LOC (<1%) 1 file
*.css12 LOC (<1%) 1 file
*.pl11 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
smali
mk
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*_test[.].*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test_.*".
  • 1334 files match defined criteria (128,447 LOC, 42.7% vs. main code):
    • 903 *.java files (62,392 LOC)
    • 179 *.cc files (46,842 LOC)
    • 215 *.smali files (12,041 LOC)
    • 12 *.h files (2,821 LOC)
    • 13 *.py files (1,664 LOC)
    • 4 *.mk files (1,337 LOC)
    • 5 *.xml files (1,225 LOC)
    • 2 *.c files (83 LOC)
    • 1 *.in files (42 LOC)
  • " *.java" is biggest, containing 48.57% of LOC.
  • " *.in" is smallest, containing 0.03% of LOC.


*.java62392 LOC (48%) 903 files
*.cc46842 LOC (36%) 179 files
*.smali12041 LOC (9%) 215 files
*.h2821 LOC (2%) 12 files
*.py1664 LOC (1%) 13 files
*.mk1337 LOC (1%) 4 files
*.xml1225 LOC (<1%) 5 files
*.c83 LOC (<1%) 2 files
*.in42 LOC (<1%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 40 files match defined criteria (4,789 LOC, 1.6% vs. main code):
    • 30 *.mk files (4,381 LOC)
    • 10 *.sh files (408 LOC)
  • " *.mk" is biggest, containing 91.48% of LOC.
  • " *.sh" is smallest, containing 8.52% of LOC.


*.mk4381 LOC (91%) 30 files
*.sh408 LOC (8%) 10 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/[.]gitignore".
  • 984 files match defined criteria (14,864 LOC, 4.9% vs. main code):
    • 981 *.txt files (14,647 LOC)
    • 3 *.md files (217 LOC)
  • " *.txt" is biggest, containing 98.54% of LOC.
  • " *.md" is smallest, containing 1.46% of LOC.


*.txt14647 LOC (98%) 981 files
*.md217 LOC (1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2024-04-03 14:38