apache / uima-uimaj
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
xmi
txt
properties
launch
xsl
project
prefs
cmd
xsd
gitattributes
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.

main180359 LOC (50%) 1,642 files
test152602 LOC (42%) 1,456 files
generated0 LOC (0%) 0 files
build and deployment5093 LOC (1%) 86 files
other22053 LOC (6%) 1,027 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
prefs
launch
xsl
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1642 files match defined criteria (180,359 LOC, 100.0% vs. main code):
    • 1,466 *.java files (172,196 LOC)
    • 108 *.xml files (6,279 LOC)
    • 43 *.html files (878 LOC)
    • 2 *.prefs files (528 LOC)
    • 16 *.launch files (258 LOC)
    • 4 *.xsl files (107 LOC)
    • 1 *.js files (68 LOC)
    • 2 *.cmd files (45 LOC)
  • " *.java" is biggest, containing 95.47% of LOC.
  • " *.cmd" is smallest, containing 0.02% of LOC.


*.java172196 LOC (95%) 1,466 files
*.xml6279 LOC (3%) 108 files
*.html878 LOC (<1%) 43 files
*.prefs528 LOC (<1%) 2 files
*.launch258 LOC (<1%) 16 files
*.xsl107 LOC (<1%) 4 files
*.js68 LOC (<1%) 1 file
*.cmd45 LOC (<1%) 2 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
launch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[-]test[-].*".
    • files with paths like ".*/[Tt]est/.*".
  • 1456 files match defined criteria (152,602 LOC, 84.6% vs. main code):
    • 1,097 *.xml files (100,812 LOC)
    • 356 *.java files (50,791 LOC)
    • 1 *.ts files (971 LOC)
    • 2 *.launch files (28 LOC)
  • " *.xml" is biggest, containing 66.06% of LOC.
  • " *.launch" is smallest, containing 0.02% of LOC.


*.xml100812 LOC (66%) 1,097 files
*.java50791 LOC (33%) 356 files
*.ts971 LOC (<1%) 1 file
*.launch28 LOC (<1%) 2 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]bat".
  • 86 files match defined criteria (5,093 LOC, 2.8% vs. main code):
    • 42 *.xml files (4,033 LOC)
    • 21 *.bat files (657 LOC)
    • 23 *.sh files (403 LOC)
  • " *.xml" is biggest, containing 79.19% of LOC.
  • " *.sh" is smallest, containing 7.91% of LOC.


*.xml4033 LOC (79%) 42 files
*.bat657 LOC (12%) 21 files
*.sh403 LOC (7%) 23 files
Other Code
xmi
properties
txt
xsd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]xmi".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/asciidoc/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 1027 files match defined criteria (22,053 LOC, 12.2% vs. main code):
    • 860 *.xmi files (12,818 LOC)
    • 45 *.java files (4,106 LOC)
    • 25 *.properties files (2,438 LOC)
    • 84 *.txt files (1,641 LOC)
    • 1 *.xsd files (598 LOC)
    • 5 *.md files (309 LOC)
    • 3 *.xml files (108 LOC)
    • 1 *.json files (23 LOC)
    • 3 *.html files (12 LOC)
  • " *.xmi" is biggest, containing 58.12% of LOC.
  • " *.html" is smallest, containing 0.05% of LOC.


*.xmi12818 LOC (58%) 860 files
*.java4106 LOC (18%) 45 files
*.properties2438 LOC (11%) 25 files
*.txt1641 LOC (7%) 84 files
*.xsd598 LOC (2%) 1 file
*.md309 LOC (1%) 5 files
*.xml108 LOC (<1%) 3 files
*.json23 LOC (<1%) 1 file
*.html12 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:53