apache / tuscany-sca-cpp
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
scm
xsd
txt
patch
in
cl
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.

main38933 LOC (89%) 412 files
test233 LOC (<1%) 17 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other4117 LOC (9%) 112 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
in
xsd
cl
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 412 files match defined criteria (38,933 LOC, 100.0% vs. main code):
    • 52 *.hpp files (11,885 LOC)
    • 55 *.html files (9,184 LOC)
    • 92 *.cpp files (8,327 LOC)
    • 167 *.py files (4,091 LOC)
    • 11 *.js files (2,414 LOC)
    • 1 *.in files (1,109 LOC)
    • 21 *.xsd files (974 LOC)
    • 1 *.css files (473 LOC)
    • 5 *.java files (330 LOC)
    • 2 *.thrift files (59 LOC)
    • 3 *.xml files (41 LOC)
    • 1 *.yaml files (30 LOC)
    • 1 *.cl files (16 LOC)
  • " *.hpp" is biggest, containing 30.53% of LOC.
  • " *.cl" is smallest, containing 0.04% of LOC.


*.hpp11885 LOC (30%) 52 files
*.html9184 LOC (23%) 55 files
*.cpp8327 LOC (21%) 92 files
*.py4091 LOC (10%) 167 files
*.js2414 LOC (6%) 11 files
*.in1109 LOC (2%) 1 file
*.xsd974 LOC (2%) 21 files
*.css473 LOC (1%) 1 file
*.java330 LOC (<1%) 5 files
*.thrift59 LOC (<1%) 2 files
*.xml41 LOC (<1%) 3 files
*.yaml30 LOC (<1%) 1 file
*.cl16 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/.*".
  • 17 files match defined criteria (233 LOC, 0.6% vs. main code):
    • 8 *.java files (149 LOC)
    • 4 *.py files (54 LOC)
    • 1 *.html files (22 LOC)
    • 4 *.xml files (8 LOC)
  • " *.java" is biggest, containing 63.95% of LOC.
  • " *.xml" is smallest, containing 3.43% of LOC.


*.java149 LOC (63%) 8 files
*.py54 LOC (23%) 4 files
*.html22 LOC (9%) 1 file
*.xml8 LOC (3%) 4 files
Other Code
scm
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]scm".
    • files with paths like ".*/[.]gitignore".
  • 112 files match defined criteria (4,117 LOC, 10.6% vs. main code):
    • 23 *.html files (2,054 LOC)
    • 34 *.scm files (1,069 LOC)
    • 28 *.py files (442 LOC)
    • 4 *.cpp files (188 LOC)
    • 6 *.patch files (186 LOC)
    • 4 *.java files (90 LOC)
    • 2 *.yaml files (64 LOC)
    • 10 *.txt files (22 LOC)
    • 1 *.xml files (2 LOC)
  • " *.html" is biggest, containing 49.89% of LOC.
  • " *.xml" is smallest, containing 0.05% of LOC.


*.html2054 LOC (49%) 23 files
*.scm1069 LOC (25%) 34 files
*.py442 LOC (10%) 28 files
*.cpp188 LOC (4%) 4 files
*.patch186 LOC (4%) 6 files
*.java90 LOC (2%) 4 files
*.yaml64 LOC (1%) 2 files
*.txt22 LOC (<1%) 10 files
*.xml2 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:39