apache / incubator-myriad
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
cfg
properties
npmrc
babelrc
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.

main20076 LOC (79%) 218 files
test3327 LOC (13%) 49 files
generated0 LOC (0%) 0 files
build and deployment715 LOC (2%) 28 files
other1175 LOC (4%) 24 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 218 files match defined criteria (20,076 LOC, 100.0% vs. main code):
    • 3 *.css files (7,155 LOC)
    • 120 *.java files (6,921 LOC)
    • 17 *.js files (3,461 LOC)
    • 39 *.yml files (1,114 LOC)
    • 4 *.scss files (403 LOC)
    • 17 *.html files (352 LOC)
    • 2 *.py files (285 LOC)
    • 5 *.yaml files (231 LOC)
    • 9 *.xml files (137 LOC)
    • 2 *.cfg files (17 LOC)
  • " *.css" is biggest, containing 35.64% of LOC.
  • " *.cfg" is smallest, containing 0.08% of LOC.


*.css7155 LOC (35%) 3 files
*.java6921 LOC (34%) 120 files
*.js3461 LOC (17%) 17 files
*.yml1114 LOC (5%) 39 files
*.scss403 LOC (2%) 4 files
*.html352 LOC (1%) 17 files
*.py285 LOC (1%) 2 files
*.yaml231 LOC (1%) 5 files
*.xml137 LOC (<1%) 9 files
*.cfg17 LOC (<1%) 2 files
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[-].*".
  • 49 files match defined criteria (3,327 LOC, 16.6% vs. main code):
    • 46 *.java files (3,156 LOC)
    • 3 *.yml files (171 LOC)
  • " *.java" is biggest, containing 94.86% of LOC.
  • " *.yml" is smallest, containing 5.14% of LOC.


*.java3156 LOC (94%) 46 files
*.yml171 LOC (5%) 3 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 ".*[.]gradle".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
  • 28 files match defined criteria (715 LOC, 3.6% vs. main code):
    • 20 *.sh files (414 LOC)
    • 6 *.gradle files (227 LOC)
    • 1 *.bat files (66 LOC)
    • 1 *.yml files (8 LOC)
  • " *.sh" is biggest, containing 57.9% of LOC.
  • " *.yml" is smallest, containing 1.12% of LOC.


*.sh414 LOC (57%) 20 files
*.gradle227 LOC (31%) 6 files
*.bat66 LOC (9%) 1 file
*.yml8 LOC (1%) 1 file
Other Code
properties
txt
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 ".*[.]json".
    • files with paths like ".*/config/checkstyle/.*".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]ocumentation/.*".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]npmrc".
    • files with paths like ".*/[.]gitignore".
  • 24 files match defined criteria (1,175 LOC, 5.9% vs. main code):
    • 17 *.md files (843 LOC)
    • 3 *.json files (158 LOC)
    • 1 *.xml files (146 LOC)
    • 1 *.properties files (20 LOC)
    • 2 *.txt files (8 LOC)
  • " *.md" is biggest, containing 71.74% of LOC.
  • " *.txt" is smallest, containing 0.68% of LOC.


*.md843 LOC (71%) 17 files
*.json158 LOC (13%) 3 files
*.xml146 LOC (12%) 1 file
*.properties20 LOC (1%) 1 file
*.txt8 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 15:40