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.

main30334 LOC (28%) 402 files
test70299 LOC (66%) 1,447 files
generated0 LOC (0%) 0 files
build and deployment3179 LOC (3%) 30 files
other1256 LOC (1%) 61 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 ".*".
  • 402 files match defined criteria (30,334 LOC, 100.0% vs. main code):
    • 392 *.java files (30,153 LOC)
    • 8 *.xml files (152 LOC)
    • 1 *.cgi files (22 LOC)
    • 1 *.html files (7 LOC)
  • " *.java" is biggest, containing 99.4% of LOC.
  • " *.html" is smallest, containing 0.02% of LOC.


*.java30153 LOC (99%) 392 files
*.xml152 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 ".*[-]test[-].*".
    • files with paths like ".*[.][Tt]est[.].*".
    • files with paths like ".*[.]test[.].*".
    • files with paths like ".*[.]feature".
    • files with paths like ".*[-]tests/.*".
    • files with paths like ".*/test[-]data/.*".
    • files with paths like ".*[-]tests[-].*".
  • 1447 files match defined criteria (70,299 LOC, 231.7% vs. main code):
    • 1,066 *.java files (52,335 LOC)
    • 374 *.xml files (17,899 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 74.45% of LOC.
  • " *.jsp" is smallest, containing 0.01% of LOC.


*.java52335 LOC (74%) 1,066 files
*.xml17899 LOC (25%) 374 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 ".*/build[.]xml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 30 files match defined criteria (3,179 LOC, 10.5% vs. main code):
    • 29 *.xml files (3,177 LOC)
    • 1 *.sh files (2 LOC)
  • " *.xml" is biggest, containing 99.94% of LOC.
  • " *.sh" is smallest, containing 0.06% of LOC.


*.xml3177 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 ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]editorconfig".
  • 61 files match defined criteria (1,256 LOC, 4.1% vs. main code):
    • 29 *.properties files (419 LOC)
    • 6 *.md files (363 LOC)
    • 18 *.txt files (265 LOC)
    • 2 *.xsd files (136 LOC)
    • 6 *.java files (73 LOC)
  • " *.properties" is biggest, containing 33.36% of LOC.
  • " *.java" is smallest, containing 5.81% of LOC.


*.properties419 LOC (33%) 29 files
*.md363 LOC (28%) 6 files
*.txt265 LOC (21%) 18 files
*.xsd136 LOC (10%) 2 files
*.java73 LOC (5%) 6 files
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 13:45