apache / juneau
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
properties
launch
cfg
prefs
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.

main178483 LOC (59%) 1,510 files
test113611 LOC (37%) 601 files
generated0 LOC (0%) 0 files
build and deployment3516 LOC (1%) 47 files
other5927 LOC (1%) 267 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prefs
cfg
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1510 files match defined criteria (178,483 LOC, 100.0% vs. main code):
    • 1,452 *.java files (172,452 LOC)
    • 13 *.css files (2,222 LOC)
    • 5 *.html files (1,332 LOC)
    • 18 *.xml files (1,104 LOC)
    • 2 *.prefs files (942 LOC)
    • 5 *.cfg files (187 LOC)
    • 12 *.launch files (152 LOC)
    • 2 *.js files (51 LOC)
    • 1 *.rdf files (41 LOC)
  • " *.java" is biggest, containing 96.62% of LOC.
  • " *.rdf" is smallest, containing 0.02% of LOC.


*.java172452 LOC (96%) 1,452 files
*.css2222 LOC (1%) 13 files
*.html1332 LOC (<1%) 5 files
*.xml1104 LOC (<1%) 18 files
*.prefs942 LOC (<1%) 2 files
*.cfg187 LOC (<1%) 5 files
*.launch152 LOC (<1%) 12 files
*.js51 LOC (<1%) 2 files
*.rdf41 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/mock[a-zA-Z0-9_\- ]+/.*".
    • files with paths like ".*/test[.].*".
  • 601 files match defined criteria (113,611 LOC, 63.7% vs. main code):
    • 598 *.java files (113,608 LOC)
    • 3 *.cfg files (3 LOC)
  • " *.java" is biggest, containing 100% of LOC.
  • " *.cfg" is smallest, containing 0% of LOC.


*.java113608 LOC (99%) 598 files
*.cfg3 LOC (<1%) 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
  • 47 files match defined criteria (3,516 LOC, 2.0% vs. main code):
    • 38 *.xml files (3,207 LOC)
    • 9 *.sh files (309 LOC)
  • " *.xml" is biggest, containing 91.21% of LOC.
  • " *.sh" is smallest, containing 8.79% of LOC.


*.xml3207 LOC (91%) 38 files
*.sh309 LOC (8%) 9 files
Other Code
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
  • 267 files match defined criteria (5,927 LOC, 3.3% vs. main code):
    • 158 *.txt files (2,749 LOC)
    • 62 *.java files (1,976 LOC)
    • 35 *.properties files (651 LOC)
    • 8 *.json files (426 LOC)
    • 3 *.md files (109 LOC)
    • 1 *.js files (16 LOC)
  • " *.txt" is biggest, containing 46.38% of LOC.
  • " *.js" is smallest, containing 0.27% of LOC.


*.txt2749 LOC (46%) 158 files
*.java1976 LOC (33%) 62 files
*.properties651 LOC (10%) 35 files
*.json426 LOC (7%) 8 files
*.md109 LOC (1%) 3 files
*.js16 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 16:03