apache / daffodil
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
xsd
txt
xsl
sch
cfg
properties
iss
gitattributes
clang-format
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.

main83199 LOC (51%) 578 files
test52800 LOC (32%) 501 files
generated0 LOC (0%) 0 files
build and deployment179 LOC (<1%) 4 files
other26699 LOC (16%) 499 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsl
iss
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 578 files match defined criteria (83,199 LOC, 100.0% vs. main code):
    • 518 *.scala files (74,969 LOC)
    • 7 *.xsl files (3,130 LOC)
    • 11 *.c files (2,105 LOC)
    • 5 *.xml files (1,572 LOC)
    • 4 *.sbt files (628 LOC)
    • 12 *.h files (398 LOC)
    • 19 *.java files (255 LOC)
    • 1 *.iss files (90 LOC)
    • 1 *.xhtml files (52 LOC)
  • " *.scala" is biggest, containing 90.11% of LOC.
  • " *.xhtml" is smallest, containing 0.06% of LOC.


*.scala74969 LOC (90%) 518 files
*.xsl3130 LOC (3%) 7 files
*.c2105 LOC (2%) 11 files
*.xml1572 LOC (1%) 5 files
*.sbt628 LOC (<1%) 4 files
*.h398 LOC (<1%) 12 files
*.java255 LOC (<1%) 19 files
*.iss90 LOC (<1%) 1 file
*.xhtml52 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
sch
cfg
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test[.].*".
  • 501 files match defined criteria (52,800 LOC, 63.5% vs. main code):
    • 362 *.scala files (45,558 LOC)
    • 88 *.xml files (4,257 LOC)
    • 39 *.java files (2,214 LOC)
    • 2 *.c files (601 LOC)
    • 7 *.sch files (90 LOC)
    • 2 *.cfg files (59 LOC)
    • 1 *.py files (21 LOC)
  • " *.scala" is biggest, containing 86.28% of LOC.
  • " *.py" is smallest, containing 0.04% of LOC.


*.scala45558 LOC (86%) 362 files
*.xml4257 LOC (8%) 88 files
*.java2214 LOC (4%) 39 files
*.c601 LOC (1%) 2 files
*.sch90 LOC (<1%) 7 files
*.cfg59 LOC (<1%) 2 files
*.py21 LOC (<1%) 1 file
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 4 files match defined criteria (179 LOC, 0.2% vs. main code). All matches are in *.sh files.


*.sh179 LOC (100%) 4 files
Other Code
xsd
txt
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
  • 499 files match defined criteria (26,699 LOC, 32.1% vs. main code):
    • 439 *.xsd files (22,134 LOC)
    • 5 *.c files (2,844 LOC)
    • 11 *.md files (1,238 LOC)
    • 37 *.txt files (255 LOC)
    • 5 *.h files (208 LOC)
    • 1 *.properties files (17 LOC)
    • 1 *.json files (3 LOC)
  • " *.xsd" is biggest, containing 82.9% of LOC.
  • " *.json" is smallest, containing 0.01% of LOC.


*.xsd22134 LOC (82%) 439 files
*.c2844 LOC (10%) 5 files
*.md1238 LOC (4%) 11 files
*.txt255 LOC (<1%) 37 files
*.h208 LOC (<1%) 5 files
*.properties17 LOC (<1%) 1 file
*.json3 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 17:01