apache / incubator-teaclave
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
txt
proto
plist
gitattributes
patch
podspec
clang-format
lds
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.

main32287 LOC (76%) 264 files
test3622 LOC (8%) 42 files
generated0 LOC (0%) 0 files
build and deployment846 LOC (1%) 14 files
other5701 LOC (13%) 107 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
lds
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 264 files match defined criteria (32,287 LOC, 100.0% vs. main code):
    • 179 *.rs files (26,741 LOC)
    • 48 *.toml files (2,169 LOC)
    • 6 *.py files (916 LOC)
    • 3 *.cmake files (615 LOC)
    • 7 *.proto files (596 LOC)
    • 6 *.yml files (453 LOC)
    • 2 *.swift files (450 LOC)
    • 4 *.h files (230 LOC)
    • 8 *.xml files (88 LOC)
    • 1 *.lds files (29 LOC)
  • " *.rs" is biggest, containing 82.82% of LOC.
  • " *.lds" is smallest, containing 0.09% of LOC.


*.rs26741 LOC (82%) 179 files
*.toml2169 LOC (6%) 48 files
*.py916 LOC (2%) 6 files
*.cmake615 LOC (1%) 3 files
*.proto596 LOC (1%) 7 files
*.yml453 LOC (1%) 6 files
*.swift450 LOC (1%) 2 files
*.h230 LOC (<1%) 4 files
*.xml88 LOC (<1%) 8 files
*.lds29 LOC (<1%) 1 file
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]ests/.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/test_.*".
  • 42 files match defined criteria (3,622 LOC, 11.2% vs. main code):
    • 28 *.rs files (3,030 LOC)
    • 9 *.toml files (376 LOC)
    • 2 *.py files (183 LOC)
    • 3 *.xml files (33 LOC)
  • " *.rs" is biggest, containing 83.66% of LOC.
  • " *.xml" is smallest, containing 0.91% of LOC.


*.rs3030 LOC (83%) 28 files
*.toml376 LOC (10%) 9 files
*.py183 LOC (5%) 2 files
*.xml33 LOC (<1%) 3 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
podspec
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitmodules".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]podspec".
    • files with paths like ".*/[.]gitattributes".
  • 14 files match defined criteria (846 LOC, 2.6% vs. main code):
    • 13 *.sh files (829 LOC)
    • 1 *.podspec files (17 LOC)
  • " *.sh" is biggest, containing 97.99% of LOC.
  • " *.podspec" is smallest, containing 2.01% of LOC.


*.sh829 LOC (97%) 13 files
*.podspec17 LOC (2%) 1 file
Other Code
txt
plist
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]plist".
    • files with paths like ".*/[Ee]xamples/.*".
  • 107 files match defined criteria (5,701 LOC, 17.7% vs. main code):
    • 23 *.py files (1,826 LOC)
    • 36 *.txt files (1,199 LOC)
    • 8 *.rs files (1,042 LOC)
    • 27 *.md files (762 LOC)
    • 4 *.c files (585 LOC)
    • 5 *.toml files (161 LOC)
    • 1 *.h files (74 LOC)
    • 3 *.plist files (52 LOC)
  • " *.py" is biggest, containing 32.03% of LOC.
  • " *.plist" is smallest, containing 0.91% of LOC.


*.py1826 LOC (32%) 23 files
*.txt1199 LOC (21%) 36 files
*.rs1042 LOC (18%) 8 files
*.md762 LOC (13%) 27 files
*.c585 LOC (10%) 4 files
*.toml161 LOC (2%) 5 files
*.h74 LOC (1%) 1 file
*.plist52 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:15