apache / incubator-teaclave-crates
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
s
gitattributes
diff
p8
inl
mk
editorconfig
clang-format
ini
lds
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.

main308663 LOC (73%) 1,495 files
test39482 LOC (9%) 272 files
generated919 LOC (<1%) 3 files
build and deployment840 LOC (<1%) 20 files
other67856 LOC (16%) 371 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
inl
proto
lds
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1495 files match defined criteria (308,663 LOC, 100.0% vs. main code):
    • 1,272 *.rs files (247,705 LOC)
    • 37 *.pl files (31,998 LOC)
    • 61 *.h files (10,645 LOC)
    • 3 *.inl files (9,762 LOC)
    • 15 *.c files (4,185 LOC)
    • 65 *.toml files (2,397 LOC)
    • 17 *.py files (870 LOC)
    • 9 *.proto files (761 LOC)
    • 8 *.yml files (97 LOC)
    • 1 *.go files (91 LOC)
    • 2 *.ps1 files (79 LOC)
    • 2 *.tf files (52 LOC)
    • 1 *.xml files (11 LOC)
    • 1 *.lds files (9 LOC)
    • 1 *.html files (1 LOC)
  • " *.rs" is biggest, containing 80.25% of LOC.
  • " *.html" is smallest, containing 0% of LOC.


*.rs247705 LOC (80%) 1,272 files
*.pl31998 LOC (10%) 37 files
*.h10645 LOC (3%) 61 files
*.inl9762 LOC (3%) 3 files
*.c4185 LOC (1%) 15 files
*.toml2397 LOC (<1%) 65 files
*.py870 LOC (<1%) 17 files
*.proto761 LOC (<1%) 9 files
*.yml97 LOC (<1%) 8 files
*.go91 LOC (<1%) 1 file
*.ps179 LOC (<1%) 2 files
*.tf52 LOC (<1%) 2 files
*.xml11 LOC (<1%) 1 file
*.lds9 LOC (<1%) 1 file
*.html1 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
p8
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]tests/.*".
  • 272 files match defined criteria (39,482 LOC, 12.8% vs. main code):
    • 234 *.rs files (38,923 LOC)
    • 16 *.toml files (270 LOC)
    • 18 *.proto files (200 LOC)
    • 1 *.c files (73 LOC)
    • 3 *.p8 files (16 LOC)
  • " *.rs" is biggest, containing 98.58% of LOC.
  • " *.p8" is smallest, containing 0.04% of LOC.


*.rs38923 LOC (98%) 234 files
*.toml270 LOC (<1%) 16 files
*.proto200 LOC (<1%) 18 files
*.c73 LOC (<1%) 1 file
*.p816 LOC (<1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/generated/.*".
  • 3 files match defined criteria (919 LOC, 0.3% vs. main code). All matches are in *.rs files.


*.rs919 LOC (100%) 3 files
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 20 files match defined criteria (840 LOC, 0.3% vs. main code):
    • 18 *.sh files (764 LOC)
    • 2 *.mk files (76 LOC)
  • " *.sh" is biggest, containing 90.95% of LOC.
  • " *.mk" is smallest, containing 9.05% of LOC.


*.sh764 LOC (90%) 18 files
*.mk76 LOC (9%) 2 files
Other Code
txt
proto
diff
ini
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 ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]diff".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*[.]svg".
  • 371 files match defined criteria (67,856 LOC, 22.0% vs. main code):
    • 68 *.txt files (39,968 LOC)
    • 111 *.md files (11,939 LOC)
    • 169 *.rs files (11,483 LOC)
    • 12 *.proto files (2,446 LOC)
    • 4 *.json files (1,515 LOC)
    • 2 *.toml files (286 LOC)
    • 3 *.diff files (132 LOC)
    • 1 *.py files (48 LOC)
    • 1 *.ini files (39 LOC)
  • " *.txt" is biggest, containing 58.9% of LOC.
  • " *.ini" is smallest, containing 0.06% of LOC.


*.txt39968 LOC (58%) 68 files
*.md11939 LOC (17%) 111 files
*.rs11483 LOC (16%) 169 files
*.proto2446 LOC (3%) 12 files
*.json1515 LOC (2%) 4 files
*.toml286 LOC (<1%) 2 files
*.diff132 LOC (<1%) 3 files
*.py48 LOC (<1%) 1 file
*.ini39 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:37