apache / uima-addons
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
xsd
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.

main42366 LOC (52%) 564 files
test15766 LOC (19%) 262 files
generated10015 LOC (12%) 14 files
build and deployment2652 LOC (3%) 18 files
other10621 LOC (13%) 126 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 564 files match defined criteria (42,366 LOC, 100.0% vs. main code):
    • 492 *.java files (29,786 LOC)
    • 66 *.xml files (11,966 LOC)
    • 3 *.xsd files (419 LOC)
    • 2 *.html files (186 LOC)
    • 1 *.groovy files (9 LOC)
  • " *.java" is biggest, containing 70.31% of LOC.
  • " *.groovy" is smallest, containing 0.02% of LOC.


*.java29786 LOC (70%) 492 files
*.xml11966 LOC (28%) 66 files
*.xsd419 LOC (<1%) 3 files
*.html186 LOC (<1%) 2 files
*.groovy9 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]est/.*".
  • 262 files match defined criteria (15,766 LOC, 37.2% vs. main code):
    • 140 *.xml files (8,202 LOC)
    • 119 *.java files (7,511 LOC)
    • 3 *.js files (53 LOC)
  • " *.xml" is biggest, containing 52.02% of LOC.
  • " *.js" is smallest, containing 0.34% of LOC.


*.xml8202 LOC (52%) 140 files
*.java7511 LOC (47%) 119 files
*.js53 LOC (<1%) 3 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with any line of content like "// This file was generated .*".
  • 14 files match defined criteria (10,015 LOC, 23.6% vs. main code). All matches are in *.java files.


*.java10015 LOC (100%) 14 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".
  • 18 files match defined criteria (2,652 LOC, 6.3% vs. main code). All matches are in *.xml files.


*.xml2652 LOC (100%) 18 files
Other Code
txt
xsd
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ss]amples/.*".
  • 126 files match defined criteria (10,621 LOC, 25.1% vs. main code):
    • 89 *.txt files (7,767 LOC)
    • 20 *.java files (1,890 LOC)
    • 5 *.xsd files (633 LOC)
    • 10 *.properties files (291 LOC)
    • 2 *.xml files (40 LOC)
  • " *.txt" is biggest, containing 73.13% of LOC.
  • " *.xml" is smallest, containing 0.38% of LOC.


*.txt7767 LOC (73%) 89 files
*.java1890 LOC (17%) 20 files
*.xsd633 LOC (5%) 5 files
*.properties291 LOC (2%) 10 files
*.xml40 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:53