apache / maven-surefire
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
properties
txt
feature
xsd
cgi
gitattributes
editorconfig
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.

main30757 LOC (28%) 403 files
test71950 LOC (66%) 1,481 files
generated0 LOC (0%) 0 files
build and deployment3465 LOC (3%) 30 files
other1264 LOC (1%) 64 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cgi
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 403 files match defined criteria (30,757 LOC, 100.0% vs. main code):
    • 393 *.java files (30,577 LOC)
    • 8 *.xml files (151 LOC)
    • 1 *.cgi files (22 LOC)
    • 1 *.html files (7 LOC)
  • " *.java" is biggest, containing 99.41% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.java30577 LOC (99%) 393 files
*.xml151 LOC (<1%) 8 files
*.cgi22 LOC (<1%) 1 file
*.html7 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
feature
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]est/.*".
    • files with paths like ".*/[Tt]ests/.*".
    • 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 ".*[.]feature".
    • files with paths like ".*[-]tests[-].*".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[-]data/.*".
  • 1481 files match defined criteria (71,950 LOC, 233.9% vs. main code):
    • 1,091 *.java files (53,149 LOC)
    • 383 *.xml files (18,736 LOC)
    • 3 *.feature files (24 LOC)
    • 1 *.groovy files (20 LOC)
    • 2 *.html files (16 LOC)
    • 1 *.jsp files (5 LOC)
  • " *.java" is biggest, containing 73.87% of LOC.
  • " *.jsp" is smallest, containing 0.01% of LOC.


*.java53149 LOC (73%) 1,091 files
*.xml18736 LOC (26%) 383 files
*.feature24 LOC (<1%) 3 files
*.groovy20 LOC (<1%) 1 file
*.html16 LOC (<1%) 2 files
*.jsp5 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 ".*[.]sh".
    • files with paths like ".*/build[.]xml".
  • 30 files match defined criteria (3,465 LOC, 11.3% vs. main code):
    • 29 *.xml files (3,463 LOC)
    • 1 *.sh files (2 LOC)
  • " *.xml" is biggest, containing 99.94% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.xml3463 LOC (99%) 29 files
*.sh2 LOC (<1%) 1 file
Other Code
properties
txt
xsd
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 ".*/checkstyle.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]editorconfig".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
  • 64 files match defined criteria (1,264 LOC, 4.1% vs. main code):
    • 29 *.properties files (415 LOC)
    • 6 *.md files (361 LOC)
    • 20 *.txt files (267 LOC)
    • 2 *.xsd files (137 LOC)
    • 6 *.java files (73 LOC)
    • 1 *.xml files (11 LOC)
  • " *.properties" is biggest, containing 32.83% of LOC.
  • " *.xml" is smallest, containing 0.87% of LOC.


*.properties415 LOC (32%) 29 files
*.md361 LOC (28%) 6 files
*.txt267 LOC (21%) 20 files
*.xsd137 LOC (10%) 2 files
*.java73 LOC (5%) 6 files
*.xml11 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-07 15:24