apache / archiva-sandbox
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
patch
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.

main12206 LOC (53%) 173 files
test5876 LOC (25%) 48 files
generated0 LOC (0%) 0 files
build and deployment1778 LOC (7%) 29 files
other2831 LOC (12%) 16 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 ".*".
  • 173 files match defined criteria (12,206 LOC, 100.0% vs. main code):
    • 163 *.java files (12,002 LOC)
    • 10 *.xml files (204 LOC)
  • " *.java" is biggest, containing 98.33% of LOC.
  • " *.xml" is smallest, containing 1.67% of LOC.


*.java12002 LOC (98%) 163 files
*.xml204 LOC (1%) 10 files
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/.*".
    • files with paths like ".*/test[-]data/.*".
  • 48 files match defined criteria (5,876 LOC, 48.1% vs. main code):
    • 14 *.xml files (3,639 LOC)
    • 28 *.java files (1,947 LOC)
    • 6 *.html files (290 LOC)
  • " *.xml" is biggest, containing 61.93% of LOC.
  • " *.html" is smallest, containing 4.94% of LOC.


*.xml3639 LOC (61%) 14 files
*.java1947 LOC (33%) 28 files
*.html290 LOC (4%) 6 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
  • 29 files match defined criteria (1,778 LOC, 14.6% vs. main code):
    • 27 *.xml files (1,772 LOC)
    • 2 *.sh files (6 LOC)
  • " *.xml" is biggest, containing 99.66% of LOC.
  • " *.sh" is smallest, containing 0.34% of LOC.


*.xml1772 LOC (99%) 27 files
*.sh6 LOC (<1%) 2 files
Other Code
xsd
txt
properties
patch
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]properties".
    • files with paths like ".*/resources/.*[.]xsd".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/checkstyle[.]xml".
    • files with paths like ".*/checkstyle.*".
    • files with paths like ".*[.]patch".
  • 16 files match defined criteria (2,831 LOC, 23.2% vs. main code):
    • 2 *.xsd files (2,401 LOC)
    • 8 *.txt files (211 LOC)
    • 1 *.xml files (173 LOC)
    • 4 *.properties files (29 LOC)
    • 1 *.patch files (17 LOC)
  • " *.xsd" is biggest, containing 84.81% of LOC.
  • " *.patch" is smallest, containing 0.6% of LOC.


*.xsd2401 LOC (84%) 2 files
*.txt211 LOC (7%) 8 files
*.xml173 LOC (6%) 1 file
*.properties29 LOC (1%) 4 files
*.patch17 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2023-08-10 14:11