apache / amoro
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
tpl
properties
txt
http
mjs
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.

main171997 LOC (69%) 1,318 files
test56479 LOC (22%) 394 files
generated0 LOC (0%) 0 files
build and deployment15072 LOC (6%) 44 files
other4037 LOC (1%) 34 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
tpl
http
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1318 files match defined criteria (171,997 LOC, 100.0% vs. main code):
    • 1,043 *.java files (139,727 LOC)
    • 132 *.scala files (10,207 LOC)
    • 52 *.vue files (7,995 LOC)
    • 3 *.g4 files (4,439 LOC)
    • 30 *.ts files (3,512 LOC)
    • 10 *.yaml files (1,639 LOC)
    • 11 *.js files (1,295 LOC)
    • 15 *.sql files (1,222 LOC)
    • 9 *.tpl files (723 LOC)
    • 4 *.less files (692 LOC)
    • 1 *.py files (203 LOC)
    • 3 *.thrift files (193 LOC)
    • 2 *.xml files (56 LOC)
    • 1 *.http files (45 LOC)
    • 1 *.mjs files (36 LOC)
    • 1 *.html files (13 LOC)
  • " *.java" is biggest, containing 81.24% of LOC.
  • " *.html" is smallest, containing 0.01% of LOC.


*.java139727 LOC (81%) 1,043 files
*.scala10207 LOC (5%) 132 files
*.vue7995 LOC (4%) 52 files
*.g44439 LOC (2%) 3 files
*.ts3512 LOC (2%) 30 files
*.yaml1639 LOC (<1%) 10 files
*.js1295 LOC (<1%) 11 files
*.sql1222 LOC (<1%) 15 files
*.tpl723 LOC (<1%) 9 files
*.less692 LOC (<1%) 4 files
*.py203 LOC (<1%) 1 file
*.thrift193 LOC (<1%) 3 files
*.xml56 LOC (<1%) 2 files
*.http45 LOC (<1%) 1 file
*.mjs36 LOC (<1%) 1 file
*.html13 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]ests/.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
  • 394 files match defined criteria (56,479 LOC, 32.8% vs. main code):
    • 376 *.java files (54,628 LOC)
    • 13 *.yaml files (1,327 LOC)
    • 1 *.sql files (448 LOC)
    • 4 *.xml files (76 LOC)
  • " *.java" is biggest, containing 96.72% of LOC.
  • " *.xml" is smallest, containing 0.13% of LOC.


*.java54628 LOC (96%) 376 files
*.yaml1327 LOC (2%) 13 files
*.sql448 LOC (<1%) 1 file
*.xml76 LOC (<1%) 4 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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/assembly[.]xml".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/pnpm.*[.]ya?ml".
  • 44 files match defined criteria (15,072 LOC, 8.8% vs. main code):
    • 36 *.xml files (7,949 LOC)
    • 1 *.yaml files (6,770 LOC)
    • 7 *.sh files (353 LOC)
  • " *.xml" is biggest, containing 52.74% of LOC.
  • " *.sh" is smallest, containing 2.34% of LOC.


*.xml7949 LOC (52%) 36 files
*.yaml6770 LOC (44%) 1 file
*.sh353 LOC (2%) 7 files
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 ".*[.]txt".
    • files with paths like ".*[.]json".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]svg".
  • 34 files match defined criteria (4,037 LOC, 2.3% vs. main code):
    • 4 *.json files (2,880 LOC)
    • 7 *.md files (497 LOC)
    • 13 *.svg files (290 LOC)
    • 1 *.xml files (159 LOC)
    • 5 *.properties files (132 LOC)
    • 3 *.txt files (54 LOC)
    • 1 *.asm files (25 LOC)
  • " *.json" is biggest, containing 71.34% of LOC.
  • " *.asm" is smallest, containing 0.62% of LOC.


*.json2880 LOC (71%) 4 files
*.md497 LOC (12%) 7 files
*.svg290 LOC (7%) 13 files
*.xml159 LOC (3%) 1 file
*.properties132 LOC (3%) 5 files
*.txt54 LOC (1%) 3 files
*.asm25 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 20:39