apache / airavata-mft
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
proto
properties
cfg
txt
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.

main19639 LOC (83%) 334 files
test272 LOC (1%) 2 files
generated126 LOC (<1%) 9 files
build and deployment2461 LOC (10%) 43 files
other928 LOC (3%) 26 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 334 files match defined criteria (19,639 LOC, 100.0% vs. main code):
    • 175 *.java files (11,562 LOC)
    • 77 *.py files (4,688 LOC)
    • 46 *.proto files (2,125 LOC)
    • 33 *.xml files (1,175 LOC)
    • 2 *.toml files (64 LOC)
    • 1 *.cfg files (25 LOC)
  • " *.java" is biggest, containing 58.87% of LOC.
  • " *.cfg" is smallest, containing 0.13% of LOC.


*.java11562 LOC (58%) 175 files
*.py4688 LOC (23%) 77 files
*.proto2125 LOC (10%) 46 files
*.xml1175 LOC (5%) 33 files
*.toml64 LOC (<1%) 2 files
*.cfg25 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/.*".
  • 2 files match defined criteria (272 LOC, 1.4% vs. main code). All matches are in *.java files.


*.java272 LOC (100%) 2 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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
  • 9 files match defined criteria (126 LOC, 0.6% vs. main code). All matches are in *.py files.


*.py126 LOC (100%) 9 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 43 files match defined criteria (2,461 LOC, 12.5% vs. main code):
    • 35 *.xml files (2,231 LOC)
    • 7 *.sh files (216 LOC)
    • 1 *.yml files (14 LOC)
  • " *.xml" is biggest, containing 90.65% of LOC.
  • " *.yml" is smallest, containing 0.57% of LOC.


*.xml2231 LOC (90%) 35 files
*.sh216 LOC (8%) 7 files
*.yml14 LOC (<1%) 1 file
Other Code
properties
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 ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 26 files match defined criteria (928 LOC, 4.7% vs. main code):
    • 16 *.properties files (402 LOC)
    • 6 *.md files (306 LOC)
    • 4 *.json files (220 LOC)
  • " *.properties" is biggest, containing 43.32% of LOC.
  • " *.json" is smallest, containing 23.71% of LOC.


*.properties402 LOC (43%) 16 files
*.md306 LOC (32%) 6 files
*.json220 LOC (23%) 4 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:15