apache / airavata-custos
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
txt
properties
cfg
ini
in
tpl
pb
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.

main86509 LOC (74%) 532 files
test622 LOC (<1%) 7 files
generated4767 LOC (4%) 7 files
build and deployment6493 LOC (5%) 79 files
other17909 LOC (15%) 81 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
tpl
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 532 files match defined criteria (86,509 LOC, 100.0% vs. main code):
    • 287 *.java files (31,160 LOC)
    • 92 *.py files (23,914 LOC)
    • 24 *.js files (20,993 LOC)
    • 45 *.proto files (6,105 LOC)
    • 26 *.yaml files (1,318 LOC)
    • 4 *.xml files (1,303 LOC)
    • 39 *.yml files (1,157 LOC)
    • 8 *.ftl files (325 LOC)
    • 1 *.css files (168 LOC)
    • 1 *.tpl files (52 LOC)
    • 1 *.html files (8 LOC)
    • 3 *.cfg files (5 LOC)
    • 1 *.in files (1 LOC)
  • " *.java" is biggest, containing 36.02% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.java31160 LOC (36%) 287 files
*.py23914 LOC (27%) 92 files
*.js20993 LOC (24%) 24 files
*.proto6105 LOC (7%) 45 files
*.yaml1318 LOC (1%) 26 files
*.xml1303 LOC (1%) 4 files
*.yml1157 LOC (1%) 39 files
*.ftl325 LOC (<1%) 8 files
*.css168 LOC (<1%) 1 file
*.tpl52 LOC (<1%) 1 file
*.html8 LOC (<1%) 1 file
*.cfg5 LOC (<1%) 3 files
*.in1 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 ".*[-]tests/.*".
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
  • 7 files match defined criteria (622 LOC, 0.7% vs. main code):
    • 3 *.java files (481 LOC)
    • 3 *.xml files (126 LOC)
    • 1 *.yaml files (15 LOC)
  • " *.java" is biggest, containing 77.33% of LOC.
  • " *.yaml" is smallest, containing 2.41% of LOC.


*.java481 LOC (77%) 3 files
*.xml126 LOC (20%) 3 files
*.yaml15 LOC (2%) 1 file
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 ".*/package[-]lock[.]json".
    • 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[!].*".
  • 7 files match defined criteria (4,767 LOC, 5.5% vs. main code):
    • 1 *.json files (4,183 LOC)
    • 6 *.py files (584 LOC)
  • " *.json" is biggest, containing 87.75% of LOC.
  • " *.py" is smallest, containing 12.25% of LOC.


*.json4183 LOC (87%) 1 file
*.py584 LOC (12%) 6 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 ".*/pom[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
  • 79 files match defined criteria (6,493 LOC, 7.5% vs. main code):
    • 64 *.xml files (6,318 LOC)
    • 2 *.yml files (93 LOC)
    • 13 *.sh files (82 LOC)
  • " *.xml" is biggest, containing 97.3% of LOC.
  • " *.sh" is smallest, containing 1.26% of LOC.


*.xml6318 LOC (97%) 64 files
*.yml93 LOC (1%) 2 files
*.sh82 LOC (1%) 13 files
Other Code
properties
txt
ini
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 ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]properties".
  • 81 files match defined criteria (17,909 LOC, 20.7% vs. main code):
    • 24 *.json files (15,827 LOC)
    • 23 *.py files (1,024 LOC)
    • 5 *.md files (468 LOC)
    • 11 *.properties files (331 LOC)
    • 16 *.txt files (247 LOC)
    • 2 *.ini files (12 LOC)
  • " *.json" is biggest, containing 88.37% of LOC.
  • " *.ini" is smallest, containing 0.07% of LOC.


*.json15827 LOC (88%) 24 files
*.py1024 LOC (5%) 23 files
*.md468 LOC (2%) 5 files
*.properties331 LOC (1%) 11 files
*.txt247 LOC (1%) 16 files
*.ini12 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 22:08