apache / maven
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
gitattributes
txt
properties
patch
cmd
wsdl
proto
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.

main124195 LOC (43%) 1,700 files
test142185 LOC (50%) 4,014 files
generated0 LOC (0%) 0 files
build and deployment9028 LOC (3%) 124 files
other7776 LOC (2%) 112 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1700 files match defined criteria (124,195 LOC, 100.0% vs. main code):
    • 1,573 *.java files (121,337 LOC)
    • 126 *.xml files (2,307 LOC)
    • 1 *.rdf files (551 LOC)
  • " *.java" is biggest, containing 97.7% of LOC.
  • " *.rdf" is smallest, containing 0.44% of LOC.


*.java121337 LOC (97%) 1,573 files
*.xml2307 LOC (1%) 126 files
*.rdf551 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
proto
wsdl
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 ".*/[Tt]ests/.*".
  • 4014 files match defined criteria (142,185 LOC, 114.5% vs. main code):
    • 2,682 *.xml files (75,954 LOC)
    • 1,325 *.java files (66,158 LOC)
    • 1 *.html files (29 LOC)
    • 1 *.proto files (17 LOC)
    • 2 *.sh files (15 LOC)
    • 1 *.jsp files (5 LOC)
    • 1 *.wsdl files (4 LOC)
    • 1 *.groovy files (3 LOC)
  • " *.xml" is biggest, containing 53.42% of LOC.
  • " *.groovy" is smallest, containing 0% of LOC.


*.xml75954 LOC (53%) 2,682 files
*.java66158 LOC (46%) 1,325 files
*.html29 LOC (<1%) 1 file
*.proto17 LOC (<1%) 1 file
*.sh15 LOC (<1%) 2 files
*.jsp5 LOC (<1%) 1 file
*.wsdl4 LOC (<1%) 1 file
*.groovy3 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 ".*/pom[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]gitattributes".
    • files with paths like ".*/assembly/src[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]bat".
  • 124 files match defined criteria (9,028 LOC, 7.3% vs. main code):
    • 121 *.xml files (8,999 LOC)
    • 1 *.bat files (26 LOC)
    • 2 *.sh files (3 LOC)
  • " *.xml" is biggest, containing 99.68% of LOC.
  • " *.sh" is smallest, containing 0.03% of LOC.


*.xml8999 LOC (99%) 121 files
*.bat26 LOC (<1%) 1 file
*.sh3 LOC (<1%) 2 files
Other Code
txt
properties
patch
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]patch".
  • 112 files match defined criteria (7,776 LOC, 6.3% vs. main code):
    • 58 *.txt files (6,568 LOC)
    • 9 *.md files (466 LOC)
    • 10 *.xml files (375 LOC)
    • 26 *.properties files (263 LOC)
    • 4 *.patch files (60 LOC)
    • 5 *.java files (44 LOC)
  • " *.txt" is biggest, containing 84.47% of LOC.
  • " *.java" is smallest, containing 0.57% of LOC.


*.txt6568 LOC (84%) 58 files
*.md466 LOC (5%) 9 files
*.xml375 LOC (4%) 10 files
*.properties263 LOC (3%) 26 files
*.patch60 LOC (<1%) 4 files
*.java44 LOC (<1%) 5 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:20