apache / incubator-teaclave-java-tee-sdk
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
mk
txt
properties
patch
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.

main5510 LOC (15%) 118 files
test3726 LOC (10%) 90 files
generated0 LOC (0%) 0 files
build and deployment3443 LOC (9%) 46 files
other22641 LOC (64%) 152 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
lds
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 118 files match defined criteria (5,510 LOC, 100.0% vs. main code):
    • 89 *.java files (3,943 LOC)
    • 12 *.c files (1,024 LOC)
    • 15 *.h files (436 LOC)
    • 1 *.xml files (96 LOC)
    • 1 *.lds files (11 LOC)
  • " *.java" is biggest, containing 71.56% of LOC.
  • " *.lds" is smallest, containing 0.2% of LOC.


*.java3943 LOC (71%) 89 files
*.c1024 LOC (18%) 12 files
*.h436 LOC (7%) 15 files
*.xml96 LOC (1%) 1 file
*.lds11 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]est/.*".
    • files with paths like ".*_test[.].*".
  • 90 files match defined criteria (3,726 LOC, 67.6% vs. main code):
    • 82 *.java files (3,020 LOC)
    • 4 *.xml files (548 LOC)
    • 2 *.c files (132 LOC)
    • 1 *.h files (22 LOC)
    • 1 *.sh files (4 LOC)
  • " *.java" is biggest, containing 81.05% of LOC.
  • " *.sh" is smallest, containing 0.11% of LOC.


*.java3020 LOC (81%) 82 files
*.xml548 LOC (14%) 4 files
*.c132 LOC (3%) 2 files
*.h22 LOC (<1%) 1 file
*.sh4 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]mk".
  • 46 files match defined criteria (3,443 LOC, 62.5% vs. main code):
    • 19 *.xml files (2,604 LOC)
    • 21 *.sh files (646 LOC)
    • 6 *.mk files (193 LOC)
  • " *.xml" is biggest, containing 75.63% of LOC.
  • " *.mk" is smallest, containing 5.61% of LOC.


*.xml2604 LOC (75%) 19 files
*.sh646 LOC (18%) 21 files
*.mk193 LOC (5%) 6 files
Other Code
txt
patch
properties
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 ".*[.]patch".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
  • 152 files match defined criteria (22,641 LOC, 410.9% vs. main code):
    • 122 *.json files (20,724 LOC)
    • 8 *.xml files (940 LOC)
    • 4 *.txt files (391 LOC)
    • 8 *.java files (205 LOC)
    • 3 *.md files (202 LOC)
    • 2 *.patch files (135 LOC)
    • 3 *.properties files (35 LOC)
    • 2 *.sh files (9 LOC)
  • " *.json" is biggest, containing 91.53% of LOC.
  • " *.sh" is smallest, containing 0.04% of LOC.


*.json20724 LOC (91%) 122 files
*.xml940 LOC (4%) 8 files
*.txt391 LOC (1%) 4 files
*.java205 LOC (<1%) 8 files
*.md202 LOC (<1%) 3 files
*.patch135 LOC (<1%) 2 files
*.properties35 LOC (<1%) 3 files
*.sh9 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-11 02:36